Define the standard RPC code that can be used for generic RPC service implementation.
This covers all gRPC statuses and have pre-defined mappings to HTTP status (4xx, 5xx) code.
If you need an application-specific error code, use an additional argument of the RPCError class.
Attributes
Members list
Type members
Classlikes
The request is aborted (e.g., dead-lock, transaction conflicts, etc.) The client should retry the request at a higher-level.
The request is aborted (e.g., dead-lock, transaction conflicts, etc.) The client should retry the request at a higher-level.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- ABORTED_U12.type
The resource creation request failed because it already exists.
The resource creation request failed because it already exists.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- ALREADY_EXISTS_U6.type
The request was cancelled, typically by the client. The client should not retry the request unless it's a network issue.
The request was cancelled, typically by the client. The client should not retry the request unless it's a network issue.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- CANCELLED_U11.type
Data loss or corrupted data
Data loss or corrupted data
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- DATA_LOSS_I8.type
The request cannot be processed in the user-specified deadline. The client may retry the request
The request cannot be processed in the user-specified deadline. The client may retry the request
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- DEADLINE_EXCEEDED_I4.type
The user has exhausted the budget for processing the request.
The user has exhausted the budget for processing the request.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- EXCEEDED_BUDGET_R8.type
The user has reached its CPU usage limit
The user has reached its CPU usage limit
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The user has reached its data size limit
The user has reached its data size limit
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The user has reached its memory usage limit
The user has reached its memory usage limit
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
There are too many requests. The user needs to retry the request after a while
There are too many requests. The user needs to retry the request after a while
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The user has reached its storage size limit
The user has reached its storage size limit
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The user has reached its running time limit
The user has reached its running time limit
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The service or the use has an inconsistent state and cannot fulfill the request. The client should not retry the request until fixing the state.
The service or the use has an inconsistent state and cannot fulfill the request. The client should not retry the request until fixing the state.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
Internal failures where the user can retry the request in general
Internal failures where the user can retry the request in general
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- INTERNAL_ERROR_I0.type
The request is interrupted at the service
The request is interrupted at the service
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- INTERRUPTED_I5.type
RPC request arguments have invalid values
RPC request arguments have invalid values
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- INVALID_ARGUMENT_U2.type
Invalid RPC request. The user should not retry the request in general.
Invalid RPC request. The user should not retry the request in general.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- INVALID_REQUEST_U1.type
The requested resource or RPC method is not found
The requested resource or RPC method is not found
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- NOT_FOUND_U5.type
The requested RPC method is not supported.
The requested RPC method is not supported.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- NOT_SUPPORTED_U7.type
The service is experiencing insufficient memory
The service is experiencing insufficient memory
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- OUT_OF_MEMORY_R1.type
Invalid range data is given to an RPC request argument.
Invalid range data is given to an RPC request argument.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- OUT_OF_RANGE_U4.type
The user does not have a permission to access the resource
The user does not have a permission to access the resource
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The resource for completing the request is insufficient.
The resource for completing the request is insufficient.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The service is shutting down now.
The service is shutting down now.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
The service is starting now. The client can retry the request after a while
The service is starting now. The client can retry the request after a while
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- SUCCESS_S0.type
Syntax error in an RPC argument
Syntax error in an RPC argument
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- SYNTAX_ERROR_U3.type
The service respond the request in time (e.g., circuit breaker is open, timeout exceeded, etc.) For operations that change the system state, this error might be returned even if the operation has completed successfully.
The service respond the request in time (e.g., circuit breaker is open, timeout exceeded, etc.) For operations that change the system state, this error might be returned even if the operation has completed successfully.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- TIMEOUT_I3.type
The user has not been authenticated
The user has not been authenticated
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- UNAUTHENTICATED_U13.type
The service is unavailable.
The service is unavailable.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- UNAVAILABLE_I2.type
Some precondition to succeed this request is not met (e.g., invalid configuration). The client should not retry the request until fixing the state.
Some precondition to succeed this request is not met (e.g., invalid configuration). The client should not retry the request until fixing the state.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- UNEXPECTED_STATE_U9.type
The requested RPC method is not implemented.
The requested RPC method is not implemented.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- UNIMPLEMENTED_U8.type
An unknown internal error
An unknown internal error
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- UNKNOWN_I1.type
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass RPCStatustrait PackSupportclass Objecttrait Matchableclass Any
- Self type
- USER_ERROR_U0.type
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Mapping HttpStatus to RPCStatus. This is useful when mapping third-party API statuses into RPCStatus
Mapping HttpStatus to RPCStatus. This is useful when mapping third-party API statuses into RPCStatus