Class PassThroughException

All Implemented Interfaces:
Serializable

public final class PassThroughException extends 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:
  • Constructor Details

    • PassThroughException

      public PassThroughException(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