Class PrintExceptions

  • All Implemented Interfaces:
    EventHandler, MethodExceptionEventHandler, RuntimeServicesAware

    public class PrintExceptions
    extends Object
    implements MethodExceptionEventHandler, RuntimeServicesAware
    Simple event handler that renders method exceptions in the page rather than throwing the exception. Useful for debugging.

    By default this event handler renders an error message containing the class and method which generated the exception, the exception name and its message. To render the reference and the location in the template, set the property eventhandler.methodexception.templateinfo to true. To render the stack trace, set the property eventhandler.methodexception.stacktrace to true.

    Since:
    1.5
    Version:
    $Id$
    Author:
    Will Glass-Husain, Claude Brisson