Interface StatusCode (2.54.1)

publicinterface StatusCode

Transport-specific status code.

The status codes are modeled after the status codes in grpc. For more information about grpc status codes, see https://github.com/grpc/grpc-java/blob/master/core/src/main/java/io/grpc/Status.java

Methods

getCode()

publicabstractStatusCode.CodegetCode()

Return the code enum value.

Returns
Type Description
StatusCode.Code

getTransportCode()

publicabstractObjectgetTransportCode()

Return the transport-specific status code value.

Returns
Type Description
Object

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

Last updated 2025年11月19日 UTC.