Class PrintExceptions

  • All Implemented Interfaces:
    EventHandler, MethodExceptionEventHandler, RuntimeServicesAware

    public class PrintExceptions
    extends java.lang.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 the exception name only. To include both the exception name and the message, set the property eventhandler.methodexception.message to true. To render the stack trace, set the property eventhandler.methodexception.stacktrace to true.

    Since:
    1.5
    Version:
    $Id: PrintExceptions.java 685685 2008-08-13 21:43:27Z nbubna $
    Author:
    Will Glass-Husain
    • Constructor Detail

      • PrintExceptions

        public PrintExceptions()