public abstract class AbstractExceptionHandler extends java.lang.Object implements ExceptionHandler
canHandle(String, String, Throwable)
method.
If you need to handle a specific exception, create a descendant of this class,
pass handling exception class names into constructor, implement
doHandle(Thread, String, String, Throwable)
method
and register the new handler in the definition of ExceptionHandlersConfiguration
bean in the client's
spring.xml.
Modifier and Type | Method and Description |
---|---|
boolean |
handle(java.lang.Thread thread,
java.lang.Throwable exception)
Handles exception if can
|
public boolean handle(java.lang.Thread thread, java.lang.Throwable exception)
ExceptionHandler
handle
in interface ExceptionHandler
thread
- threadexception
- exception