Class PrimeExceptionHandler

  • All Implemented Interfaces:
    EventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListener, javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>

    public class PrimeExceptionHandler
    extends javax.faces.context.ExceptionHandlerWrapper
    • Constructor Detail

      • PrimeExceptionHandler

        public PrimeExceptionHandler​(javax.faces.context.ExceptionHandler wrapped)
    • Method Detail

      • getWrapped

        public javax.faces.context.ExceptionHandler getWrapped()
        Specified by:
        getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>
        Overrides:
        getWrapped in class javax.faces.context.ExceptionHandlerWrapper
      • handle

        public void handle()
                    throws javax.faces.FacesException
        Overrides:
        handle in class javax.faces.context.ExceptionHandlerWrapper
        Throws:
        javax.faces.FacesException
      • logException

        protected void logException​(Throwable rootCause)
      • isLogException

        protected boolean isLogException​(javax.faces.context.FacesContext context,
                                         Throwable rootCause)
      • getRootCause

        public Throwable getRootCause​(Throwable throwable)
        Overrides:
        getRootCause in class javax.faces.context.ExceptionHandlerWrapper
      • buildView

        protected Throwable buildView​(javax.faces.context.FacesContext context,
                                      Throwable throwable,
                                      Throwable rootCause)
                               throws IOException
        Builds the view if not already available. This is mostly required for ViewExpiredException's.
        Parameters:
        context - The FacesContext.
        throwable - The occurred Throwable.
        rootCause - The root cause.
        Returns:
        The unwrapped Throwable.
        Throws:
        IOException - If building the view fails.
      • constructRedirectUrl

        protected String constructRedirectUrl​(javax.faces.context.FacesContext facesContext,
                                              String errorPage)