- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.carne.util.function.FunctionException
-
- All Implemented Interfaces:
java.io.Serializable
public class FunctionException extends java.lang.RuntimeExceptionRuntimeException type used to handle exception during execution of a functional interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionException(java.lang.Exception cause)Constructs a new FunctionException instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.Exception>
Trethrow(java.lang.Class<T> exceptionType)Gets the wrapped exception for re-throwing.
-
-
-
Constructor Detail
-
FunctionException
public FunctionException(java.lang.Exception cause)
Constructs a new FunctionException instance.- Parameters:
cause- the exception to wrap.
-
-