org.apache.myfaces.shared_tomahawk.context
Class AjaxExceptionHandlerImpl

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

public class AjaxExceptionHandlerImpl
extends javax.faces.context.ExceptionHandler

Specialized Ajax Handler, according to JSF 2.0 rev A section 13.3.7.

Author:
Leonardo Uribe

Constructor Summary
AjaxExceptionHandlerImpl()
           
 
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

AjaxExceptionHandlerImpl

public AjaxExceptionHandlerImpl()
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 © 2012 The Apache Software Foundation. All Rights Reserved.