Class PassThroughException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class PassThroughException
    extends java.lang.RuntimeException
    Unchecked exception class that can be used to pass checked exceptions out of methods that are not declared to throw any checked exception.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PassThroughException​(java.lang.Throwable cause)
      Wrap a Throwable in this unchecked exception to allow it to pass through methods that are not declared to raise this kind of condition.
    • Method Summary

      • 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

      • PassThroughException

        public PassThroughException​(java.lang.Throwable cause)
        Wrap a Throwable in this unchecked exception to allow it to pass through methods that are not declared to raise this kind of condition.
        Parameters:
        cause - the Throwable to pass through