Class GrpcStatusCode (2.57.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
Name Description
grpcCode io.grpc.Status.Code
Returns
Type Description
GrpcStatusCode

Constructors

GrpcStatusCode()

public GrpcStatusCode()

Methods

getCode()

public StatusCode.Code getCode()

Returns the Status.Code from grpc.

Returns
Type Description
StatusCode.Code

getTransportCode()

public abstract Status.Code getTransportCode()

Return the transport-specific status code value.

Returns
Type Description
io.grpc.Status.Code