public abstract class AbstractGenericExceptionHandler extends java.lang.Object implements GenericExceptionHandler
canHandle(String, String, Throwable)
method.
If you need to handle a specific exception, create a descendant of this class,
pass handled exception class names into constructor, implement
doHandle(String, String, Throwable, WindowManager)
method and annotate the class with @Component
.
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
AbstractGenericExceptionHandler(java.lang.String... classNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
handle(java.lang.Throwable exception,
WindowManager windowManager)
Handle an exception.
|
public AbstractGenericExceptionHandler(java.lang.String... classNames)
public boolean handle(java.lang.Throwable exception, WindowManager windowManager)
GenericExceptionHandler
handle
in interface GenericExceptionHandler
exception
- exception instancewindowManager
- WindowManager instance