Class GrpcStatusCode (2.13.0)

public abstract class GrpcStatusCode implements StatusCode

A failure code specific to a gRPC call.

Inheritance

java.lang.Object > GrpcStatusCode

Implements

StatusCode

Static Methods

of(Status.Code grpcCode)

public static GrpcStatusCode of(Status.Code grpcCode)

Creates a new instance with the given Status.Code.

Parameter
NameDescription
grpcCodeio.grpc.Status.Code
Returns
TypeDescription
GrpcStatusCode

Constructors

GrpcStatusCode()

public GrpcStatusCode()

Methods

getCode()

public StatusCode.Code getCode()

Returns the Status.Code from grpc.

Returns
TypeDescription
StatusCode.Code

getTransportCode()

public abstract Status.Code getTransportCode()

Return the transport-specific status code value.

Returns
TypeDescription
io.grpc.Status.Code