RPCStatus

wvlet.airframe.http.RPCStatus
See theRPCStatus companion object
sealed abstract class RPCStatus(val statusType: RPCStatusType, val grpcStatus: GrpcStatus) extends PackSupport

A base class for defining standard RPC error codes

Attributes

Companion:
object
Graph
Supertypes
trait PackSupport
class Object
trait Matchable
class Any
Known subtypes
object ABORTED_U12.type
object ALREADY_EXISTS_U6.type
object CANCELLED_U11.type
object DATA_LOSS_I8.type
object EXCEEDED_BUDGET_R8.type
object INTERNAL_ERROR_I0.type
object INTERRUPTED_I5.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 SUCCESS_S0.type
object SYNTAX_ERROR_U3.type
object TIMEOUT_I3.type
object UNAVAILABLE_I2.type
object UNIMPLEMENTED_U8.type
object UNKNOWN_I1.type
object USER_ERROR_U0.type

Members list

Concise view

Value members

Concrete methods

http status code derived from grpc status code

http status code derived from grpc status code

Attributes

def isFailure: Boolean
def isSuccess: Boolean
def name: String

The error code name.

The error code name.

Attributes

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.

Attributes

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)

override def pack(p: Packer): Unit

Attributes

Definition Classes
PackSupport

Concrete fields

lazy val code: Int

Integer-based error code

Integer-based error code

Attributes