public class GrpcException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. GrpcException
Thrown when a synchronous helper observes a non-OK gRPC status or a transport-level failure. The async callback path uses GrpcResponse instead – this is only for code paths that prefer exceptions over inspecting responseCode.

Constructors

public GrpcException(int status, int httpCode, String message)

Methods

public int getStatus()
public int getHttpCode()

Inherited methods

Constructor details

GrpcException

public GrpcException(int status, int httpCode, String message)

Method details

getStatus

public int getStatus()

getHttpCode

public int getHttpCode()