Enum ErrorStatus

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

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

      • NO_SUCH_NAME

        public static final ErrorStatus NO_SUCH_NAME
      • WRONG_TYPE

        public static final ErrorStatus WRONG_TYPE
      • WRONG_LENGTH

        public static final ErrorStatus WRONG_LENGTH
      • WRONG_ENCODING

        public static final ErrorStatus WRONG_ENCODING
      • WRONG_VALUE

        public static final ErrorStatus WRONG_VALUE
      • NO_CREATION

        public static final ErrorStatus NO_CREATION
      • INCONSISTENT_VALUE

        public static final ErrorStatus INCONSISTENT_VALUE
      • RESOURCE_UNAVAILABLE

        public static final ErrorStatus RESOURCE_UNAVAILABLE
      • COMMIT_FAILED

        public static final ErrorStatus COMMIT_FAILED
      • UNDO_FAILED

        public static final ErrorStatus UNDO_FAILED
      • AUTHORIZATION_ERROR

        public static final ErrorStatus AUTHORIZATION_ERROR
      • NOT_WRITABLE

        public static final ErrorStatus NOT_WRITABLE
      • INCONSISTENT_NAME

        public static final ErrorStatus INCONSISTENT_NAME
    • Method Detail

      • values

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

        public static ErrorStatus 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
      • isFatal

        public abstract boolean isFatal()
        Whether or not this error status should be fatal (ie, throw an exception).
      • retry

        public abstract boolean retry()
        Whether or not a retry should be attempted upon receiving this error code.
      • fromStatus

        public static ErrorStatus fromStatus​(int status)