com.ibm.commerce.promotion.uniquecode.generator

Class PatternDefineException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • com.ibm.commerce.promotion.uniquecode.generator.PatternDefineException
  • All Implemented Interfaces:
    java.io.Serializable


    public class PatternDefineException
    extends java.lang.RuntimeException
    The pattern definition exception class
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      PatternDefineException(java.lang.Integer typeIn, java.lang.String patternIn, java.lang.String message)
      Constructor
      PatternDefineException(java.lang.Integer typeIn, java.lang.String patternIn, java.lang.String message, java.lang.Throwable cause)
      Constructor
      PatternDefineException(java.lang.Integer typeIn, java.lang.String message, java.lang.Throwable cause)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getPattern()
      This method gets the pattern string
      java.lang.Integer getType()
      This method gets the error type
      • 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

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

      • ERROR_TYPE_DOUBLE_CLOSE

        public static final java.lang.Integer ERROR_TYPE_DOUBLE_CLOSE
        The error type of double close of the pattern cell
      • ERROR_TYPE_DOUBLE_OPEN

        public static final java.lang.Integer ERROR_TYPE_DOUBLE_OPEN
        The error type of double open of the pattern cell
      • ERROR_TYPE_INVALID_MASK

        public static final java.lang.Integer ERROR_TYPE_INVALID_MASK
        The error type of invalid code
      • ERROR_TYPE_CODESPACE_INSUFFICIENT

        public static final java.lang.Integer ERROR_TYPE_CODESPACE_INSUFFICIENT
        The error type of code space is not enough
    • Constructor Detail

      • PatternDefineException

        public PatternDefineException(java.lang.Integer typeIn,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        Constructor
        Parameters:
        typeIn - The error type
        message - The error message
        cause - The root cause exception
      • PatternDefineException

        public PatternDefineException(java.lang.Integer typeIn,
                                      java.lang.String patternIn,
                                      java.lang.String message)
        Constructor
        Parameters:
        typeIn - The error type
        patternIn - The pattern that has the error
        message - The error message
      • PatternDefineException

        public PatternDefineException(java.lang.Integer typeIn,
                                      java.lang.String patternIn,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        Constructor
        Parameters:
        typeIn - The error type
        patternIn - The pattern that has the error
        message - The error message
        cause - The root cause exception
    • Method Detail

      • getType

        public java.lang.Integer getType()
        This method gets the error type
        Returns:
        The type integer
      • getPattern

        public java.lang.String getPattern()
        This method gets the pattern string
        Returns:
        The pattern string