Class GrpcStatusException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class GrpcStatusException
    extends java.lang.RuntimeException
    A GrpcStatus in exception form.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.rpc.Status applicationStatus()
      Returns the status details if any was included or null.
      static GrpcStatusException of​(com.google.rpc.Status status)
      Returns a new GrpcStatusException for the given Status.
      GrpcStatus status()
      Returns the wrapped GrpcStatus.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • applicationStatus

        @Nullable
        public com.google.rpc.Status applicationStatus()
        Returns the status details if any was included or null.
        Returns:
        the wrapped Status.
      • of

        public static GrpcStatusException of​(com.google.rpc.Status status)
        Returns a new GrpcStatusException for the given Status.
        Parameters:
        status - the status
        Returns:
        the exception created.