Package io.atlassian.fugue.deprecated
Class Throwables.ExceptionFunction<E extends java.lang.Exception>
- java.lang.Object
-
- io.atlassian.fugue.deprecated.Throwables.ExceptionFunction<E>
-
- All Implemented Interfaces:
java.util.function.Function<java.lang.Throwable,E>
- Enclosing class:
- Throwables
private static final class Throwables.ExceptionFunction<E extends java.lang.Exception> extends java.lang.Object implements java.util.function.Function<java.lang.Throwable,E>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExceptionFunction(java.lang.Class<E> type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Eapply(java.lang.Throwable throwable)private static <T> java.lang.reflect.Constructor<T>getConstructor(java.lang.Class<T> type, java.lang.Class<?>... argTypes)private static <T> TnewInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... args)
-
-
-
Field Detail
-
type
private final java.lang.Class<E extends java.lang.Exception> type
-
-
Constructor Detail
-
ExceptionFunction
private ExceptionFunction(java.lang.Class<E> type)
-
-
Method Detail
-
apply
public E apply(java.lang.Throwable throwable)
- Specified by:
applyin interfacejava.util.function.Function<java.lang.Throwable,E extends java.lang.Exception>
-
getConstructor
private static <T> java.lang.reflect.Constructor<T> getConstructor(java.lang.Class<T> type, java.lang.Class<?>... argTypes)
-
newInstance
private static <T> T newInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... args)
-
-