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

Members list

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.

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)

Attributes

override def pack(p: Packer): Unit

Attributes

Definition Classes
PackSupport
def shouldReportStackTrace: Boolean

Concrete fields

lazy val code: Int

Integer-based error code

Integer-based error code

Attributes