Package org.apache.camel.spi
Interface ExceptionHandler
-
public interface ExceptionHandlerA Strategy pattern for handling exceptions; particularly in asynchronous processes such as consumers. Its important to not throw any exceptions when handling exceptions as they handler is often invoked in a try .. catch logic already
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleException(String message, Throwable exception)Handles the given exceptionvoidhandleException(String message, Exchange exchange, Throwable exception)Handles the given exceptionvoidhandleException(Throwable exception)Handles the given exception
-
-
-
Method Detail
-
handleException
void handleException(Throwable exception)
Handles the given exception- Parameters:
exception- the exception
-
handleException
void handleException(String message, Throwable exception)
Handles the given exception- Parameters:
message- additional messageexception- the exception
-
-