Module org.tentackle.common
Package org.tentackle.common
Class ExceptionHelper.Handler<T extends java.lang.Throwable>
- java.lang.Object
-
- org.tentackle.common.ExceptionHelper.Handler<T>
-
- Type Parameters:
T- the exception type
- Enclosing class:
- ExceptionHelper
public static class ExceptionHelper.Handler<T extends java.lang.Throwable> extends java.lang.ObjectException handler.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(java.lang.Throwable t)Checks if handler applies to the given exception.voidhandle(T t)Handles the exception.
-
-
-
Method Detail
-
appliesTo
public boolean appliesTo(java.lang.Throwable t)
Checks if handler applies to the given exception.- Parameters:
t- the exception- Returns:
- true if handler applies
-
handle
public void handle(T t)
Handles the exception.- Parameters:
t- the exception
-
-