1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package javax.faces.context;
20
21 import javax.faces.FacesException;
22 import javax.faces.event.AbortProcessingException;
23 import javax.faces.event.ExceptionQueuedEvent;
24 import javax.faces.event.SystemEvent;
25 import javax.faces.event.SystemEventListener;
26
27
28
29
30 public abstract class ExceptionHandler implements SystemEventListener
31 {
32 public ExceptionHandler()
33 {
34
35 }
36
37 public abstract ExceptionQueuedEvent getHandledExceptionQueuedEvent();
38
39 public abstract Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents();
40
41 public abstract Throwable getRootCause(Throwable t);
42
43 public abstract Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents();
44
45 public abstract void handle() throws FacesException;
46
47 @Override
48 public abstract boolean isListenerForSource(Object source);
49
50 @Override
51 public abstract void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException;
52 }