Class SwitchAjaxExceptionHandlerWrapperImpl

java.lang.Object
jakarta.faces.context.ExceptionHandler
jakarta.faces.context.ExceptionHandlerWrapper
org.apache.myfaces.context.SwitchAjaxExceptionHandlerWrapperImpl
All Implemented Interfaces:
FacesListener, SystemEventListener, FacesWrapper<ExceptionHandler>, EventListener

public class SwitchAjaxExceptionHandlerWrapperImpl extends ExceptionHandlerWrapper
This wrapper is a switch to choose in a lazy way between ajax and normal exceptionHandler wrapping, because FacesContext is initialized after ExceptionHandler, so it is not safe to get it when ExceptionHandlerFactory.getExceptionHandler() is called.