Class ErrorController

  • All Implemented Interfaces:
    Serializable

    @Named
    @RequestScoped
    public class ErrorController
    extends Object
    implements Serializable
    The ErrorController provides methods to analyse a exception stack trace. The controller is used in the errorhandler.xhtml page to redirect the user to a corresponding error page.
    Author:
    rsoika
    See Also:
    Serialized Form
    • Constructor Detail

      • ErrorController

        public ErrorController()
    • Method Detail

      • isCausedBy

        public boolean isCausedBy​(Exception e,
                                  String excpetionType)
        Returns true if the exception is caused by a specific Exception type
        Parameters:
        e -
        Returns:
      • getMessage

        public String getMessage()
      • setMessage

        public void setMessage​(String message)