Package io.nitric.api

Enum NitricException.Code

    • Enum Constant Detail

      • ALREADY_EXISTS

        public static final NitricException.Code ALREADY_EXISTS
        Create an entity failed because one already exists.
      • CANCELLED

        public static final NitricException.Code CANCELLED
        Operation was cancelled (typically by the caller).
      • DATA_LOSS

        public static final NitricException.Code DATA_LOSS
        Indicates unrecoverable data loss or corruption.
      • DEADLINE_EXCEEDED

        public static final NitricException.Code DEADLINE_EXCEEDED
        Operation expired before completion.
      • FAILED_PRECONDITION

        public static final NitricException.Code FAILED_PRECONDITION
        Operation was rejected because the system is not in a state required.
      • INVALID_ARGUMENT

        public static final NitricException.Code INVALID_ARGUMENT
        Indicates client specified an invalid argument.
      • OUT_OF_RANGE

        public static final NitricException.Code OUT_OF_RANGE
        Operation was attempted past the valid range.
      • PERMISSION_DENIED

        public static final NitricException.Code PERMISSION_DENIED
        Caller does not have permission to execute the specified operation.
      • RESOURCE_EXHAUSTED

        public static final NitricException.Code RESOURCE_EXHAUSTED
        System resource has been exhausted.
      • UNAVAILABLE

        public static final NitricException.Code UNAVAILABLE
        Service unavailable, generally transient maybe retried.
      • UNAUTHENTICATED

        public static final NitricException.Code UNAUTHENTICATED
        Request does not have valid authentication credentials.
      • UNIMPLEMENTED

        public static final NitricException.Code UNIMPLEMENTED
        Operation is not implemented or supported.
      • UNKNOWN

        public static final NitricException.Code UNKNOWN
        Errors raised by APIs that do not return enough error information may be converted to this error.
    • Method Detail

      • values

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

        public static NitricException.Code valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null