Class Streams.UncheckedException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Streams

    public static final class Streams.UncheckedException
    extends java.lang.RuntimeException
    Exception indicating that Checked* threw an exception and the default handler was used
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UncheckedException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Throwable unwrap​(java.lang.Throwable theThrowable)
      If the caught exception was wrapped from a call to an unchecked(...) action, get the root cause.
      • 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

      • UncheckedException

        public UncheckedException​(java.lang.Throwable cause)
    • Method Detail

      • unwrap

        public static java.lang.Throwable unwrap​(java.lang.Throwable theThrowable)
        If the caught exception was wrapped from a call to an unchecked(...) action, get the root cause.
        Parameters:
        theThrowable - the exception which may have been from unchecked
        Returns:
        the root cause of the UncheckedException, or the exception