|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.LoggingExceptionHandler
public class LoggingExceptionHandler
A default implementation of ExceptionHandler
which uses a Logger
to
log to an arbitrary Log
with some LoggingLevel
Constructor Summary | |
---|---|
LoggingExceptionHandler(Class<?> ownerType)
|
|
LoggingExceptionHandler(Logger logger)
|
Method Summary | |
---|---|
void |
handleException(String message,
Exchange exchange,
Throwable exception)
Handles the given exception |
void |
handleException(String message,
Throwable exception)
Handles the given exception |
void |
handleException(Throwable exception)
Handles the given exception |
protected boolean |
isCausedByRollbackExchangeException(Throwable exception)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingExceptionHandler(Class<?> ownerType)
public LoggingExceptionHandler(Logger logger)
Method Detail |
---|
public void handleException(Throwable exception)
ExceptionHandler
handleException
in interface ExceptionHandler
exception
- the exceptionpublic void handleException(String message, Throwable exception)
ExceptionHandler
handleException
in interface ExceptionHandler
message
- additional messageexception
- the exceptionpublic void handleException(String message, Exchange exchange, Throwable exception)
ExceptionHandler
handleException
in interface ExceptionHandler
message
- additional messageexchange
- exchange which cause the exceptionexception
- the exceptionprotected boolean isCausedByRollbackExchangeException(Throwable exception)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |