|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.exceptionhandling.AbstractRegisterableExceptionHandler
org.springframework.richclient.exceptionhandling.AbstractLoggingExceptionHandler
public abstract class AbstractLoggingExceptionHandler
Superclass of logging exception handlers. It handles a throwable by logging it and notify it to the user. Subclasses determine how it's notified to the user.
Field Summary | |
---|---|
protected ExceptionPurger |
exceptionPurger
|
protected static String |
LOG_MESSAGE
|
protected org.apache.commons.logging.Log |
logger
|
protected LogLevel |
logLevel
|
Constructor Summary | |
---|---|
AbstractLoggingExceptionHandler()
|
Method Summary | |
---|---|
void |
logException(Thread thread,
Throwable throwable)
Log an exception |
abstract void |
notifyUserAboutException(Thread thread,
Throwable throwable)
Notify user about an exception |
void |
setExceptionPurger(ExceptionPurger exceptionPurger)
If set the throwable will first be purged before handling it. |
void |
setLogLevel(LogLevel logLevel)
The log level at which the throwable should be logged. |
void |
uncaughtException(Thread thread,
Throwable throwable)
Logs an exception and shows it to the user. |
Methods inherited from class org.springframework.richclient.exceptionhandling.AbstractRegisterableExceptionHandler |
---|
registerExceptionHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String LOG_MESSAGE
protected final transient org.apache.commons.logging.Log logger
protected LogLevel logLevel
protected ExceptionPurger exceptionPurger
Constructor Detail |
---|
public AbstractLoggingExceptionHandler()
Method Detail |
---|
public void setLogLevel(LogLevel logLevel)
logLevel
- thepublic void setExceptionPurger(ExceptionPurger exceptionPurger)
exceptionPurger
- public final void uncaughtException(Thread thread, Throwable throwable)
public void logException(Thread thread, Throwable throwable)
public abstract void notifyUserAboutException(Thread thread, Throwable throwable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |