Module org.tentackle.common
Package org.tentackle.common
Class ExceptionHelper.Handler<T extends Throwable>
java.lang.Object
org.tentackle.common.ExceptionHelper.Handler<T>
- Type Parameters:
T- the exception type
- Enclosing class:
ExceptionHelper
Exception handler.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Handler
Creates an exception handler.- Parameters:
type- the exception classconsumer- the consumer to handle the exception
-
-
Method Details
-
appliesTo
Checks if handler applies to the given exception.- Parameters:
t- the exception- Returns:
- true if handler applies
-
handle
Handles the exception.- Parameters:
t- the exception
-