Enum ErrorCode

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

    public enum ErrorCode
    extends java.lang.Enum<ErrorCode>
    ErrorCode is a wrapper around grpc Error code.

    Modification Notice: This is a modification of ErrorCode.java from Google-cloud-spanner java api.

    • Enum Constant Detail

      • CANCELLED

        public static final ErrorCode CANCELLED
      • UNKNOWN

        public static final ErrorCode UNKNOWN
      • INVALID_ARGUMENT

        public static final ErrorCode INVALID_ARGUMENT
      • DEADLINE_EXCEEDED

        public static final ErrorCode DEADLINE_EXCEEDED
      • NOT_FOUND

        public static final ErrorCode NOT_FOUND
      • ALREADY_EXISTS

        public static final ErrorCode ALREADY_EXISTS
      • PERMISSION_DENIED

        public static final ErrorCode PERMISSION_DENIED
      • UNAUTHENTICATED

        public static final ErrorCode UNAUTHENTICATED
      • RESOURCE_EXHAUSTED

        public static final ErrorCode RESOURCE_EXHAUSTED
      • FAILED_PRECONDITION

        public static final ErrorCode FAILED_PRECONDITION
      • ABORTED

        public static final ErrorCode ABORTED
      • OUT_OF_RANGE

        public static final ErrorCode OUT_OF_RANGE
      • UNIMPLEMENTED

        public static final ErrorCode UNIMPLEMENTED
      • INTERNAL

        public static final ErrorCode INTERNAL
      • UNAVAILABLE

        public static final ErrorCode UNAVAILABLE
      • DATA_LOSS

        public static final ErrorCode DATA_LOSS
    • 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