Class ExceptionFunction<T,R>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.logic.ExceptionFunction<T,R>
-
- All Implemented Interfaces:
Function<T,R>
public class ExceptionFunction<T,R> extends Object implements Function<T,R>
AFunctionthat always throws aRuntimeExceptionof some sort.
-
-
Field Summary
Fields Modifier and Type Field Description private RuntimeExceptionthrownExceptionException that will be thrown when this function is executed.
-
Constructor Summary
Constructors Constructor Description ExceptionFunction(RuntimeException e)Constructor.
-
-
-
Field Detail
-
thrownException
private RuntimeException thrownException
Exception that will be thrown when this function is executed.
-
-
Constructor Detail
-
ExceptionFunction
public ExceptionFunction(@Nonnull RuntimeException e)Constructor.- Parameters:
e- exception that will be thrown when this function is executed
-
-