Package net.paoding.rose.web

Examples of net.paoding.rose.web.ControllerErrorHandler.onError()


        InvocationBean invb = (InvocationBean) inv;
        Module module = invb.getModule();
        while ((module = module.getParent()) != null) {
            ControllerErrorHandler handler;
            if ((handler = module.getErrorHandler()) != null) {
                return handler.onError(invb, ex);
            }
        }
        throw ex;
    }
View Full Code Here


                rose.getInvocation().setViewModule(errorHandlerModule);
                //
                HttpServletRequest request = rose.getInvocation().getRequest();
                WebUtils.exposeErrorRequestAttributes(request, cause, null);
                StackTraceSimplifier.simplify(cause)//对栈进行简化
                instruction = errorHandler.onError(rose.getInvocation(), cause);
            }

            // onError方法返回null,表示需要重新throw出去
            // rethrow出去的不是cause而是invException,目的要把整个异常抛出来,以让知道整个异常的来由
            if ((errorHandler == null) || (instruction == null)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.