Examples of ExceptionReporter


Examples of org.apache.tapestry.services.ExceptionReporter

    public void handleRequestException(Throwable exception) throws IOException
    {
        Page page = _pageCache.get("ExceptionReport");

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        _renderer.renderPageResponse(page, _response);
    }
View Full Code Here

Examples of org.apache.tapestry.services.ExceptionReporter

    {
        _log.error(ServicesMessages.requestException(exception), exception);

        Page page = _pageCache.get("ExceptionReport");

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        _renderer.renderPageResponse(page, _response);
    }
View Full Code Here

Examples of org.apache.tapestry.services.ExceptionReporter

    {
        _logger.error(ServicesMessages.requestException(exception), exception);

        Page page = _pageCache.get("ExceptionReport");

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        _renderer.renderPageResponse(page);
    }
View Full Code Here

Examples of org.apache.tapestry.services.ExceptionReporter

    {
        _logger.error(ServicesMessages.requestException(exception), exception);

        Page page = _pageCache.get("ExceptionReport");

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        _renderer.renderPageResponse(page, _response);
    }
View Full Code Here

Examples of org.apache.tapestry.services.ExceptionReporter

    {
        _logger.error(ServicesMessages.requestException(exception), exception);

        Page page = _pageCache.get("ExceptionReport");

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        _renderer.renderPageResponse(page, _response);
    }
View Full Code Here

Examples of org.apache.tapestry.services.ExceptionReporter

    {
        _logger.error(ServicesMessages.requestException(exception), exception);

        Page page = _pageCache.get("ExceptionReport");

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        _renderer.renderPageResponse(page);
    }
View Full Code Here

Examples of org.apache.tapestry5.services.ExceptionReporter

        response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        response.setHeader("X-Tapestry-ErrorMessage", InternalUtils.toMessage(exception));

        Page page = pageCache.get(pageName);

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        renderer.renderPageResponse(page);
    }
View Full Code Here

Examples of org.apache.tapestry5.services.ExceptionReporter

    {
        logger.error(ServicesMessages.requestException(exception), exception);

        Page page = pageCache.get(pageName);

        ExceptionReporter rootComponent = (ExceptionReporter) page.getRootComponent();

        // Let the page set up for the new exception.

        rootComponent.reportException(exception);

        renderer.renderPageResponse(page);
    }
View Full Code Here

Examples of org.apache.tapestry5.services.ExceptionReporter

            {
                return null;
            }
        });

        ExceptionReporter noopExceptionReporter = new ExceptionReporter()
        {
            @Override
            public void reportException(Throwable exception)
            {
View Full Code Here

Examples of org.apache.tapestry5.services.ExceptionReporter

                        response.sendError(HttpServletResponse.SC_FORBIDDEN);
                        return;
                    }
                    throwable = throwable.getCause();
                }
                ExceptionReporter errors = (ExceptionReporter) componentSource.getPage(vn.pyco.tinycms.web.pages.Exception.class);
                errors.reportException(exception);
                renderer.renderPageMarkupResponse("Exception");
            }
        };
    }
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.