Enum FailureCodes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FailureCodes>

    public enum FailureCodes
    extends java.lang.Enum<FailureCodes>
    • Enum Constant Detail

      • BelowLegalDrinkingAge

        public static final FailureCodes BelowLegalDrinkingAge
      • ShippingProhibitedToAddress

        public static final FailureCodes ShippingProhibitedToAddress
      • MissingRequiredLicense

        public static final FailureCodes MissingRequiredLicense
      • VolumeLimitExceeded

        public static final FailureCodes VolumeLimitExceeded
      • InvalidFieldValue

        public static final FailureCodes InvalidFieldValue
      • MissingRequiredField

        public static final FailureCodes MissingRequiredField
      • InvalidFieldType

        public static final FailureCodes InvalidFieldType
      • InvalidFormat

        public static final FailureCodes InvalidFormat
      • AlcoholContentLimitExceeded

        public static final FailureCodes AlcoholContentLimitExceeded
    • Method Detail

      • values

        public static FailureCodes[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FailureCodes c : FailureCodes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FailureCodes valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • valueOf

        public static FailureCodes valueOf​(int intValue)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        intValue - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()