AbstractUiExceptionHandler instead.@Deprecated 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.
UiExceptionHandler.UiContext| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
classNames
Deprecated.
|
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE| Constructor and Description |
|---|
AbstractGenericExceptionHandler(java.lang.String... classNames)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandle(java.lang.String className,
java.lang.String message,
java.lang.Throwable throwable)
Deprecated.
Should be implemented in subclasses if the exception class name is not enough to determine the ability to
handle the exception.
|
protected abstract void |
doHandle(java.lang.String className,
java.lang.String message,
java.lang.Throwable throwable,
WindowManager windowManager)
Deprecated.
Perform exception handling.
|
boolean |
handle(java.lang.Throwable exception,
WindowManager windowManager)
Deprecated.
Handle an exception.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic AbstractGenericExceptionHandler(java.lang.String... classNames)
public boolean handle(java.lang.Throwable exception,
WindowManager windowManager)
GenericExceptionHandlerhandle in interface GenericExceptionHandlerexception - exception instancewindowManager - WindowManagerImpl instanceprotected boolean canHandle(java.lang.String className,
java.lang.String message,
@Nullable
java.lang.Throwable throwable)
className - exception class namemessage - exception messagethrowable - exception instance. Can be null if the exception occurred on the server side and this
exception class isn't accessible by the client.protected abstract void doHandle(java.lang.String className,
java.lang.String message,
@Nullable
java.lang.Throwable throwable,
WindowManager windowManager)
className - actual exception class namemessage - exception messagethrowable - exception instance. Can be null if the exception occurred on the server side and this
exception class isn't accessible by the client.windowManager - WindowManager instance