Enum ErrorClasses

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

    @Internal
    public enum ErrorClasses
    extends java.lang.Enum<ErrorClasses>
    • Enum Constant Detail

      • TRANSACTION_OPERATION_FAILED

        public static final ErrorClasses TRANSACTION_OPERATION_FAILED
      • FAIL_TRANSIENT

        public static final ErrorClasses FAIL_TRANSIENT
      • FAIL_AMBIGUOUS

        public static final ErrorClasses FAIL_AMBIGUOUS
      • FAIL_DOC_ALREADY_EXISTS

        public static final ErrorClasses FAIL_DOC_ALREADY_EXISTS
      • FAIL_DOC_NOT_FOUND

        public static final ErrorClasses FAIL_DOC_NOT_FOUND
      • FAIL_PATH_ALREADY_EXISTS

        public static final ErrorClasses FAIL_PATH_ALREADY_EXISTS
      • FAIL_PATH_NOT_FOUND

        public static final ErrorClasses FAIL_PATH_NOT_FOUND
      • FAIL_CAS_MISMATCH

        public static final ErrorClasses FAIL_CAS_MISMATCH
      • FAIL_WRITE_WRITE_CONFLICT

        public static final ErrorClasses FAIL_WRITE_WRITE_CONFLICT
      • FAIL_ATR_FULL

        public static final ErrorClasses FAIL_ATR_FULL
    • Method Detail

      • values

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

        public static ErrorClasses 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
      • classify

        public static ErrorClasses classify​(java.lang.Throwable err)
      • isFailTransient

        public static boolean isFailTransient​(java.lang.Throwable e)
      • isFailHard

        public static boolean isFailHard​(java.lang.Throwable e)
      • isFailAmbiguous

        public static boolean isFailAmbiguous​(java.lang.Throwable e)
      • mapFromQuery

        public static ErrorClasses mapFromQuery​(java.lang.Integer ec)
        Map from gocbcore's ordering of the error classes.