sealed abstract class RPCStatus(val statusType: RPCStatusType, val grpcStatus: GrpcStatus) extends PackSupport
A base class for defining standard RPC error codes
- Companion:
- object
trait PackSupport
class Object
trait Matchable
class Any
object ABORTED_U12.type
object ALREADY_EXISTS_U6.type
object CANCELLED_U11.type
object DATA_LOSS_I8.type
object DEADLINE_EXCEEDED_I4.type
object EXCEEDED_BUDGET_R8.type
object EXCEEDED_CPU_LIMIT_R3.type
object EXCEEDED_DATA_SIZE_LIMIT_R6.type
object EXCEEDED_MEMORY_LIMIT_R4.type
object EXCEEDED_RATE_LIMIT_R2.type
object EXCEEDED_STORAGE_LIMIT_R7.type
object EXCEEDED_TIME_LIMIT_R5.type
object INCONSISTENT_STATE_U10.type
object INTERNAL_ERROR_I0.type
object INTERRUPTED_I5.type
object INVALID_ARGUMENT_U2.type
object INVALID_REQUEST_U1.type
object NOT_FOUND_U5.type
object NOT_SUPPORTED_U7.type
object OUT_OF_MEMORY_R1.type
object OUT_OF_RANGE_U4.type
object PERMISSION_DENIED_U14.type
object RESOURCE_EXHAUSTED_R0.type
object SERVICE_SHUTTING_DOWN_I7.type
object SERVICE_STARTING_UP_I6.type
object SUCCESS_S0.type
object SYNTAX_ERROR_U3.type
object TIMEOUT_I3.type
object UNAUTHENTICATED_U13.type
object UNAVAILABLE_I2.type
object UNEXPECTED_STATE_U9.type
object UNIMPLEMENTED_U8.type
object UNKNOWN_I1.type
object USER_ERROR_U0.type
Value members
Concrete methods
def newException(message: String, cause: Throwable, appErrorCode: Int, metadata: Map[String, Any]): RPCException
Create a new RPCException with this RPCStatus.
Create a new RPCException with this RPCStatus.
- Value parameters:
- appErrorCode
application-specific error code. default: -1 (None)
- cause
the cause of the error (optional)
- message
the error message (required)
- metadata
application-specific metadata (optional)