Class GrpcStatusCode (2.23.3)

publicabstractclassGrpcStatusCodeimplementsStatusCode

A failure code specific to a gRPC call.

Implements

StatusCode

Static Methods

of(Status.Code grpcCode)

publicstaticGrpcStatusCodeof(Status.CodegrpcCode)

Creates a new instance with the givenStatus.Code.

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

Constructors

GrpcStatusCode()

publicGrpcStatusCode()

Methods

getCode()

publicStatusCode.CodegetCode()

Returns theStatus.Code from grpc.

Returns
TypeDescription
StatusCode.Code

getTransportCode()

publicabstractStatus.CodegetTransportCode()

Return the transport-specific status code value.

Returns
TypeDescription
io.grpc.Status.Code

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.