public class FacesMessageExceptionHandlerFactory extends ExceptionHandlerFactory
faces-config.xml
to get the
FacesMessageExceptionHandler
to run:
<factory> <exception-handler-factory> org.omnifaces.exceptionhandler.FacesMessageExceptionHandlerFactory </exception-handler-factory> </factory>
FacesMessageExceptionHandler
Constructor and Description |
---|
FacesMessageExceptionHandlerFactory(ExceptionHandlerFactory wrapped)
Construct a new full ajax exception handler factory around the given wrapped factory.
|
Modifier and Type | Method and Description |
---|---|
ExceptionHandler |
getExceptionHandler()
Returns a new instance of
FacesMessageExceptionHandler which wraps the original exception handler. |
ExceptionHandlerFactory |
getWrapped()
Returns the wrapped factory.
|
public FacesMessageExceptionHandlerFactory(ExceptionHandlerFactory wrapped)
wrapped
- The wrapped factory.public ExceptionHandler getExceptionHandler()
FacesMessageExceptionHandler
which wraps the original exception handler.getExceptionHandler
in class ExceptionHandlerFactory
public ExceptionHandlerFactory getWrapped()
getWrapped
in interface FacesWrapper<ExceptionHandlerFactory>
getWrapped
in class ExceptionHandlerFactory