Examples of ExceptionRender


Examples of com.jfinal.ext.render.exception.ExceptionRender

    @Override
    public void intercept(ActionInvocation ai) {
        try {
            ai.invoke();
        } catch (Exception e) {
            ExceptionRender exceptionRender = matchRender(e);
            if (exceptionRender == null) {
                exceptionRender = defaultRender;
            }
            if (exceptionRender != null) {
                ai.getController().render(exceptionRender.setException(e));
            }
        }
    }
View Full Code Here

Examples of com.jfinal.ext.render.exception.ExceptionRender

    }

    private ExceptionRender matchRender(Exception e) {
        Class<?> clazz = e.getClass();
        Class<?> superclass = clazz.getSuperclass();
        ExceptionRender exceptionRender = null;
        while (superclass != null) {
            superclass = clazz.getSuperclass();
            exceptionRender = exceptionMapping.get(clazz);
            if (exceptionRender != null) {
                break;
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.