# Class GrpcException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.io.grpc.GrpcException

public class GrpcException extends RuntimeException
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`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GrpcException(int status, int httpCode, String message)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getHttpCode()`
  `int`
  `getStatus()`

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### GrpcException

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

- ## Method Details

  - ### getStatus

    public int getStatus()

  - ### getHttpCode

    public int getHttpCode()