Class UncheckedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.lang3.exception.UncheckedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UncheckedExecutionException
,UncheckedInterruptedException
,UncheckedReflectiveOperationException
,UncheckedTimeoutException
public class UncheckedException extends java.lang.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(java.lang.Throwable cause)
Constructs an instance initialized to the givencause
.
-
-
-
Constructor Detail
-
UncheckedException
public UncheckedException(java.lang.Throwable cause)
Constructs an instance initialized to the givencause
.- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (A @{code null} value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-