Class AbstractExceptionAwareLogic

    • Constructor Detail

      • AbstractExceptionAwareLogic

        public AbstractExceptionAwareLogic()
    • Method Detail

      • handleException

        protected java.lang.Object handleException​(java.lang.Exception e,
                                                   HttpActionAdapter httpActionAdapter,
                                                   WebContext context)
        Handle exceptions.
        Parameters:
        e - the thrown exception
        httpActionAdapter - the HTTP action adapter
        context - the web context
        Returns:
        the final HTTP result
      • runtimeException

        protected java.lang.RuntimeException runtimeException​(java.lang.Exception exception)
        Wrap an Exception into a RuntimeException.
        Parameters:
        exception - the original exception
        Returns:
        the RuntimeException
      • getErrorUrl

        public java.lang.String getErrorUrl()
      • setErrorUrl

        public void setErrorUrl​(java.lang.String errorUrl)
        Define on which error URL the user will be redirected in case of an exception.
        Parameters:
        errorUrl - the error URL