|
||||||||||
| 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 CamelLogger to
log the exception.
DefaultShutdownStrategy.isSuppressLoggingOnTimeout()
option to avoid logging if the logging should be suppressed.
| Constructor Summary | |
|---|---|
LoggingExceptionHandler(CamelContext camelContext,
CamelLogger logger)
|
|
LoggingExceptionHandler(CamelContext camelContext,
Class<?> ownerType)
|
|
LoggingExceptionHandler(CamelContext camelContext,
Class<?> ownerType,
LoggingLevel level)
|
|
LoggingExceptionHandler(CamelLogger logger)
Deprecated. |
|
LoggingExceptionHandler(Class<?> ownerType)
Deprecated. |
|
LoggingExceptionHandler(Class<?> ownerType,
LoggingLevel level)
Deprecated. |
|
| 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)
|
protected boolean |
isSuppressLogging()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public LoggingExceptionHandler(Class<?> ownerType)
public LoggingExceptionHandler(CamelContext camelContext,
Class<?> ownerType)
@Deprecated
public LoggingExceptionHandler(Class<?> ownerType,
LoggingLevel level)
public LoggingExceptionHandler(CamelContext camelContext,
Class<?> ownerType,
LoggingLevel level)
@Deprecated public LoggingExceptionHandler(CamelLogger logger)
public LoggingExceptionHandler(CamelContext camelContext,
CamelLogger logger)
| Method Detail |
|---|
public void handleException(Throwable exception)
ExceptionHandler
handleException in interface ExceptionHandlerexception - the exception
public void handleException(String message,
Throwable exception)
ExceptionHandler
handleException in interface ExceptionHandlermessage - additional messageexception - the exception
public void handleException(String message,
Exchange exchange,
Throwable exception)
ExceptionHandler
handleException in interface ExceptionHandlermessage - additional messageexchange - exchange which cause the exceptionexception - the exceptionprotected boolean isCausedByRollbackExchangeException(Throwable exception)
protected boolean isSuppressLogging()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||