org.apache.myfaces.context
Class MyFacesExceptionHandlerWrapperImpl

java.lang.Object
  extended by javax.faces.context.ExceptionHandler
      extended by javax.faces.context.ExceptionHandlerWrapper
          extended by org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl
All Implemented Interfaces:
EventListener, FacesListener, SystemEventListener, FacesWrapper<ExceptionHandler>

public class MyFacesExceptionHandlerWrapperImpl
extends ExceptionHandlerWrapper

Extended MyFaces-specific ExceptionHandler implementation.

Author:
Leonardo Uribe

Constructor Summary
MyFacesExceptionHandlerWrapperImpl(ExceptionHandler delegate)
           
 
Method Summary
 ExceptionQueuedEvent getHandledExceptionQueuedEvent()
          
 Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
          
protected  Throwable getRethrownException(Throwable exception)
           
 Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
          
 ExceptionHandler getWrapped()
           
 void handle()
          
protected  void init()
           
protected  void init(FacesContext facesContext)
           
protected  void init(SystemEvent exceptionQueuedEvent)
           
protected  boolean isErrorPagePresent()
           
protected  boolean isUseMyFacesErrorHandling()
           
 void processEvent(SystemEvent exceptionQueuedEvent)
          
protected  boolean shouldSkip(Throwable exception)
           
protected  FacesException wrap(Throwable exception)
           
 
Methods inherited from class javax.faces.context.ExceptionHandlerWrapper
getRootCause, isListenerForSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFacesExceptionHandlerWrapperImpl

public MyFacesExceptionHandlerWrapperImpl(ExceptionHandler delegate)
Method Detail

init

protected void init()

init

protected void init(FacesContext facesContext)

init

protected void init(SystemEvent exceptionQueuedEvent)

isUseMyFacesErrorHandling

protected boolean isUseMyFacesErrorHandling()

isErrorPagePresent

protected boolean isErrorPagePresent()

getHandledExceptionQueuedEvent

public ExceptionQueuedEvent getHandledExceptionQueuedEvent()

Overrides:
getHandledExceptionQueuedEvent in class ExceptionHandlerWrapper

getHandledExceptionQueuedEvents

public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()

Overrides:
getHandledExceptionQueuedEvents in class ExceptionHandlerWrapper

getUnhandledExceptionQueuedEvents

public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()

Overrides:
getUnhandledExceptionQueuedEvents in class ExceptionHandlerWrapper

handle

public void handle()
            throws FacesException

Overrides:
handle in class ExceptionHandlerWrapper
Throws:
FacesException

processEvent

public void processEvent(SystemEvent exceptionQueuedEvent)
                  throws AbortProcessingException

Specified by:
processEvent in interface SystemEventListener
Overrides:
processEvent in class ExceptionHandlerWrapper
Throws:
AbortProcessingException

getRethrownException

protected Throwable getRethrownException(Throwable exception)

wrap

protected FacesException wrap(Throwable exception)

shouldSkip

protected boolean shouldSkip(Throwable exception)

getWrapped

public ExceptionHandler getWrapped()
Specified by:
getWrapped in interface FacesWrapper<ExceptionHandler>
Overrides:
getWrapped in class ExceptionHandlerWrapper


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