org.apache.camel.spi
Interface ExceptionHandler

All Known Implementing Classes:
LoggingExceptionHandler

public interface ExceptionHandler

A Strategy pattern for handling exceptions; particularly in asynchronous processes such as consumers

Version:
$Revision: 17060 $

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
 

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 message
exception - the exception

handleException

void handleException(String message,
                     Exchange exchange,
                     Throwable exception)
Handles the given exception

Parameters:
message - additional message
exchange - exchange which cause the exception
exception - the exception


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.