UncheckedException (Apache Commons Lang 3.17.0 API)
Description: declaration: package: org.apache.commons.lang3.exception, class: UncheckedException

Package org.apache.commons.lang3.exception

# Class UncheckedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.lang3.exception.UncheckedException

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `UncheckedExecutionException`, `UncheckedInterruptedException`, `UncheckedReflectiveOperationException`, `UncheckedTimeoutException`

public class UncheckedException extends RuntimeException
Abstracts the concept of wrapping a checked exception as unchecked.

Subclasses should only be used to wrap checked exception.

Since:
  3.13.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UncheckedException(Throwable cause)`
  Constructs an instance initialized to the given `cause`.

- ## 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 Details

  - ### UncheckedException

    public UncheckedException(Throwable cause)
    Constructs an instance initialized to the given `cause`.
    Parameters:
      `cause` - the cause (which is saved for later retrieval by the `Throwable.getCause()` method). (A `null` value is permitted, and indicates that the cause is nonexistent or unknown.)