Class GRpcRuntimeExceptionWrapper

  • All Implemented Interfaces:
    java.io.Serializable

    public final class GRpcRuntimeExceptionWrapper
    extends java.lang.RuntimeException
    Runtime exception that allows to wrap the checked exception to be handled by GRpcExceptionHandler
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getHint()  
      static java.lang.Object getHint​(java.lang.Throwable exc)  
      static java.lang.Throwable unwrap​(java.lang.Throwable exc)  
      • 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
    • Constructor Detail

      • GRpcRuntimeExceptionWrapper

        public GRpcRuntimeExceptionWrapper​(@NonNull
                                           java.lang.Throwable cause,
                                           java.lang.Object hint)
      • GRpcRuntimeExceptionWrapper

        public GRpcRuntimeExceptionWrapper​(@NonNull
                                           java.lang.Throwable cause)
    • Method Detail

      • unwrap

        public static java.lang.Throwable unwrap​(java.lang.Throwable exc)
      • getHint

        public static java.lang.Object getHint​(java.lang.Throwable exc)
      • getHint

        public java.lang.Object getHint()