- All Implemented Interfaces:
Serializable
,Comparable<FlightStatusCode>
A status code describing the result of a Flight call.
-
Enum Constant Summary
Enum ConstantDescriptionThe operation creates a resource that already exists.The operation was cancelled.An internal/implementation error occurred.One or more of the given arguments was invalid.The operation describes a resource that does not exist.The call completed successfully.Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.The operation timed out.The client was not authenticated.The client did not have permission to make the call.The server cannot currently handle the request.The requested operation is not implemented.An unknown error occurred. -
Method Summary
Modifier and TypeMethodDescriptiontoStatus()
Create a blankCallStatus
with this code.static FlightStatusCode
Returns the enum constant of this type with the specified name.static FlightStatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
The call completed successfully. Generally clients will not see this, but middleware may. -
UNKNOWN
An unknown error occurred. This may also be the result of an implementation error on the server-side; by default, unhandled server exceptions result in this code. -
INTERNAL
An internal/implementation error occurred. -
INVALID_ARGUMENT
One or more of the given arguments was invalid. -
TIMED_OUT
The operation timed out. -
NOT_FOUND
The operation describes a resource that does not exist. -
ALREADY_EXISTS
The operation creates a resource that already exists. -
CANCELLED
The operation was cancelled. -
UNAUTHENTICATED
The client was not authenticated. -
UNAUTHORIZED
The client did not have permission to make the call. -
UNIMPLEMENTED
The requested operation is not implemented. -
UNAVAILABLE
The server cannot currently handle the request. This should be used for retriable requests, i.e. the server should send this code only if it has not done any work. -
RESOURCE_EXHAUSTED
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. (see: https://grpc.github.io/grpc/core/md_doc_statuscodes.html)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toStatus
Create a blankCallStatus
with this code.
-