Package io.nitric.api
Enum NitricException.Code
- java.lang.Object
-
- java.lang.Enum<NitricException.Code>
-
- io.nitric.api.NitricException.Code
-
- All Implemented Interfaces:
Serializable
,Comparable<NitricException.Code>
- Enclosing class:
- NitricException
public static enum NitricException.Code extends Enum<NitricException.Code>
The gRPC status error codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTED
Operation was aborted.ALREADY_EXISTS
Create an entity failed because one already exists.CANCELLED
Operation was cancelled (typically by the caller).DATA_LOSS
Indicates unrecoverable data loss or corruption.DEADLINE_EXCEEDED
Operation expired before completion.FAILED_PRECONDITION
Operation was rejected because the system is not in a state required.INTERNAL
Underlying system is broken.INVALID_ARGUMENT
Indicates client specified an invalid argument.NOT_FOUND
Requested entity was not found.OUT_OF_RANGE
Operation was attempted past the valid range.PERMISSION_DENIED
Caller does not have permission to execute the specified operation.RESOURCE_EXHAUSTED
System resource has been exhausted.UNAUTHENTICATED
Request does not have valid authentication credentials.UNAVAILABLE
Service unavailable, generally transient maybe retried.UNIMPLEMENTED
Operation is not implemented or supported.UNKNOWN
Errors raised by APIs that do not return enough error information may be converted to this error.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NitricException.Code
valueOf(String name)
Returns the enum constant of this type with the specified name.static NitricException.Code[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABORTED
public static final NitricException.Code ABORTED
Operation was aborted.
-
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.
-
INTERNAL
public static final NitricException.Code INTERNAL
Underlying system is broken.
-
INVALID_ARGUMENT
public static final NitricException.Code INVALID_ARGUMENT
Indicates client specified an invalid argument.
-
NOT_FOUND
public static final NitricException.Code NOT_FOUND
Requested entity was not found.
-
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 nameNullPointerException
- if the argument is null
-
-