Top Description Fields Constructors
org.apache.commons.lang3.exception

public Class UncheckedException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.apache.commons.lang3.exception.UncheckedInterruptedException, org.apache.commons.lang3.exception.UncheckedReflectiveOperationException, org.apache.commons.lang3.concurrent.UncheckedExecutionException, org.apache.commons.lang3.concurrent.UncheckedTimeoutException

Abstracts the concept of wrapping a checked exception as unchecked.

Subclasses should only be used to wrap checked exception.

Since
3.13.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
UncheckedException(final Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs an instance initialized to the given cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

UncheckedExceptionback to summary
public UncheckedException(final Throwable cause)

Constructs an instance initialized to the given cause.

Parameters
cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)