org.apache.myfaces.test.mock
Class MockExceptionHandler

java.lang.Object
  extended by javax.faces.context.ExceptionHandler
      extended by org.apache.myfaces.test.mock.MockExceptionHandler
All Implemented Interfaces:
EventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListener

public class MockExceptionHandler
extends javax.faces.context.ExceptionHandler

Mock implementation of ExceptionHandler.

$Id: MockExceptionHandler.java 990408 2010-08-28 18:59:21Z lu4242 $

Since:
1.0.0

Constructor Summary
MockExceptionHandler()
           
 
Method Summary
 javax.faces.event.ExceptionQueuedEvent getHandledExceptionQueuedEvent()
          
 Iterable<javax.faces.event.ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
          
protected  Throwable getRethrownException(Throwable exception)
           
 Throwable getRootCause(Throwable t)
          
 Iterable<javax.faces.event.ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
          
 void handle()
          
 boolean isListenerForSource(Object source)
          
 void processEvent(javax.faces.event.SystemEvent exceptionQueuedEvent)
          
protected  boolean shouldSkip(Throwable exception)
           
protected  javax.faces.FacesException wrap(Throwable exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockExceptionHandler

public MockExceptionHandler()
Method Detail

getHandledExceptionQueuedEvent

public javax.faces.event.ExceptionQueuedEvent getHandledExceptionQueuedEvent()

Specified by:
getHandledExceptionQueuedEvent in class javax.faces.context.ExceptionHandler

getHandledExceptionQueuedEvents

public Iterable<javax.faces.event.ExceptionQueuedEvent> getHandledExceptionQueuedEvents()

Specified by:
getHandledExceptionQueuedEvents in class javax.faces.context.ExceptionHandler

getRootCause

public Throwable getRootCause(Throwable t)

Specified by:
getRootCause in class javax.faces.context.ExceptionHandler

getUnhandledExceptionQueuedEvents

public Iterable<javax.faces.event.ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()

Specified by:
getUnhandledExceptionQueuedEvents in class javax.faces.context.ExceptionHandler

handle

public void handle()
            throws javax.faces.FacesException

Specified by:
handle in class javax.faces.context.ExceptionHandler
Throws:
javax.faces.FacesException

isListenerForSource

public boolean isListenerForSource(Object source)

Specified by:
isListenerForSource in interface javax.faces.event.SystemEventListener
Specified by:
isListenerForSource in class javax.faces.context.ExceptionHandler

processEvent

public void processEvent(javax.faces.event.SystemEvent exceptionQueuedEvent)
                  throws javax.faces.event.AbortProcessingException

Specified by:
processEvent in interface javax.faces.event.SystemEventListener
Specified by:
processEvent in class javax.faces.context.ExceptionHandler
Throws:
javax.faces.event.AbortProcessingException

getRethrownException

protected Throwable getRethrownException(Throwable exception)

wrap

protected javax.faces.FacesException wrap(Throwable exception)

shouldSkip

protected boolean shouldSkip(Throwable exception)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.