public class CouponCodeGenerationException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ERROR_CODE
default error code to be used in deprecated constructors
|
static int |
ERROR_MAXIMUM_COUPON_CODES_GENERATED
indicates that a coupon code could not be generated because the maximum number of allowed coupon codes has been
exceeded.
|
| Constructor and Description |
|---|
CouponCodeGenerationException(java.lang.String message)
Deprecated.
since 6.4. Error code is obligatory to set. Use
CouponCodeGenerationException(String, int)
instead |
CouponCodeGenerationException(java.lang.String message,
int errorCode) |
CouponCodeGenerationException(java.lang.String message,
int errorCode,
java.lang.Throwable cause) |
CouponCodeGenerationException(java.lang.String message,
java.lang.Throwable cause)
Deprecated.
since 6.4. Error code is obligatory to set. Use
CouponCodeGenerationException(String, int, Throwable)
instead |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode() |
public static final int DEFAULT_ERROR_CODE
public static final int ERROR_MAXIMUM_COUPON_CODES_GENERATED
@Deprecated
public CouponCodeGenerationException(java.lang.String message,
java.lang.Throwable cause)
CouponCodeGenerationException(String, int, Throwable)
insteadpublic CouponCodeGenerationException(java.lang.String message,
int errorCode,
java.lang.Throwable cause)
@Deprecated public CouponCodeGenerationException(java.lang.String message)
CouponCodeGenerationException(String, int)
insteadpublic CouponCodeGenerationException(java.lang.String message,
int errorCode)
Copyright © 2017 SAP SE. All Rights Reserved.