Package org.apache.camel.spi
Interface ExceptionHandler
public interface ExceptionHandler
A Strategy pattern for handling exceptions; particularly in asynchronous processes such as consumers.
Its important to not throw any exceptions when handling exceptions as the handler is often invoked in a try ..
catch logic already
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleException
(String message, Throwable exception) Handles the given exceptionvoid
handleException
(String message, Exchange exchange, Throwable exception) Handles the given exceptionvoid
handleException
(Throwable exception) Handles the given exception
-
Method Details
-
handleException
Handles the given exception- Parameters:
exception
- the exception
-
handleException
Handles the given exception- Parameters:
message
- additional messageexception
- the exception
-
handleException
Handles the given exception- Parameters:
message
- additional messageexchange
- exchange which cause the exceptionexception
- the exception
-