Class CouponCodeGenerationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.couponservices.couponcodegeneration.CouponCodeGenerationException
All Implemented Interfaces:
Serializable

public class CouponCodeGenerationException extends RuntimeException
CouponCodeGenerationException indicates an exception related to coupon code generation.
See Also:
  • Field Details

    • DEFAULT_ERROR_CODE

      public static final int DEFAULT_ERROR_CODE
      default error code to be used in deprecated constructors
      See Also:
    • ERROR_MAXIMUM_COUPON_CODES_GENERATED

      public static final 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.
      See Also:
  • Constructor Details

    • CouponCodeGenerationException

      public CouponCodeGenerationException(String message, int errorCode, Throwable cause)
    • CouponCodeGenerationException

      public CouponCodeGenerationException(String message, int errorCode)
  • Method Details

    • getErrorCode

      public int getErrorCode()