01: /*
02: * $Id: ExceptionHandler.java 10789 2008-02-12 20:04:43Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.example.errorhandler;
12:
13: import java.util.Iterator;
14:
15: /**
16: * <code>ExceptionHandler</code> TODO (document class)
17: */
18: public interface ExceptionHandler {
19:
20: public ErrorManager getErrorManager();
21:
22: public void setErrorManager(ErrorManager errorManager);
23:
24: public void onException(ErrorMessage message)
25: throws HandlerException;
26:
27: public void registerException(Class exceptionClass);
28:
29: public void unRegisterException(Class exceptionClass);
30:
31: public Iterator getRegisteredClasses();
32:
33: public boolean isRegisteredFor(Class exceptionClass);
34:
35: }
|