Package com.complexible.common.base

# Class Streams.UncheckedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.complexible.common.base.Streams.UncheckedException

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  `Streams`

public static final class Streams.UncheckedException extends RuntimeException
Exception indicating that Checked* threw an exception and the default handler was used

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UncheckedException(Throwable cause)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Throwable`
  `unwrap(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 Details

  - ### UncheckedException

    public UncheckedException(Throwable cause)

- ## Method Details

  - ### unwrap

    public static Throwable unwrap(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