Class CouponCodeGenerationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CouponCodeGenerationException
    extends java.lang.RuntimeException
    CouponCodeGenerationException indicates an exception related to coupon code generation.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_ERROR_CODE

        public static final int DEFAULT_ERROR_CODE
        default error code to be used in deprecated constructors
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
    • Constructor Detail

      • CouponCodeGenerationException

        public CouponCodeGenerationException​(java.lang.String message,
                                             int errorCode,
                                             java.lang.Throwable cause)
      • CouponCodeGenerationException

        public CouponCodeGenerationException​(java.lang.String message,
                                             int errorCode)
    • Method Detail

      • getErrorCode

        public int getErrorCode()