Package model

Enum errorCode

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

    public enum errorCode
    extends java.lang.Enum<errorCode>
    Enumeration values that represent valid error types, used to generate error dialogues during runtime 1. MAXMINVAL - Max Must be greater than min 2. POSVALUES - all values must be positive (cannot be negative) 3. STOCKLEVEL - Stock level must be greater than max and more than min 4. VALIDVALUES - Values must be valid for the data type associated with that input 5. ASSOCPARTSELECTED - no associated part was selected in the UI 6. ALREADYASSOCPART - same associated part is assigned to the product and can't be added again 7. NOITEMTODELETE - an item to delete was not selected in the UI 8. ASSOCPARTDELERR - Product cannot be removed until it's associated parts have been removed 9. NOMODIFYSELECTED - item to modify wasn't selected in the UI 10. SEARCHFAIL - No search items were found. Returns search requirements
    • Enum Constant Detail

      • MAXMINVAL

        public static final errorCode MAXMINVAL
      • POSVALUES

        public static final errorCode POSVALUES
      • STOCKLEVEL

        public static final errorCode STOCKLEVEL
      • VALIDVALUES

        public static final errorCode VALIDVALUES
      • ASSOCPARTSELECTED

        public static final errorCode ASSOCPARTSELECTED
      • ALREADYASSOCPART

        public static final errorCode ALREADYASSOCPART
      • NOITEMTODELETE

        public static final errorCode NOITEMTODELETE
      • ASSOCPARTDELERR

        public static final errorCode ASSOCPARTDELERR
      • NOMODIFYSELECTED

        public static final errorCode NOMODIFYSELECTED
      • SEARCHFAIL

        public static final errorCode SEARCHFAIL
    • Method Detail

      • values

        public static errorCode[] 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 (errorCode c : errorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static errorCode 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