Module org.tquadrat.foundation.base
Class CheckedExceptionWrapper
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tquadrat.foundation.exception.CheckedExceptionWrapper
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LambdaContainerException
@ClassVersion(sourceVersion="$Id: CheckedExceptionWrapper.java 1055 2023-05-01 14:45:07Z tquadrat $")
@API(status=STABLE,
since="0.2.3")
public sealed class CheckedExceptionWrapper
extends RuntimeException
permits LambdaContainerException
A generic wrapper for checked exceptions.
Use this wrapper to emit a checked exception as a
RuntimeException
.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: CheckedExceptionWrapper.java 1055 2023-05-01 14:45:07Z tquadrat $
- Since:
- 0.2.3
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.exception.CheckedExceptionWrapper"
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newCheckedExceptionWrapper
instance for the given exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CheckedExceptionWrapper
Creates a newCheckedExceptionWrapper
instance for the given exception.- Parameters:
e
- The exception to wrap; cannot benull
.
-