1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.example.errorhandler; |
8 | |
|
9 | |
import java.util.Iterator; |
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
public interface ExceptionHandler |
15 | |
{ |
16 | |
|
17 | |
public ErrorManager getErrorManager(); |
18 | |
|
19 | |
public void setErrorManager(ErrorManager errorManager); |
20 | |
|
21 | |
public void onException(ErrorMessage message) throws HandlerException; |
22 | |
|
23 | |
public void registerException(Class exceptionClass); |
24 | |
|
25 | |
public void unRegisterException(Class exceptionClass); |
26 | |
|
27 | |
public Iterator getRegisteredClasses(); |
28 | |
|
29 | |
public boolean isRegisteredFor(Class exceptionClass); |
30 | |
|
31 | |
} |