| java.lang.Object org.apache.velocity.app.event.implement.PrintExceptions
PrintExceptions | public class PrintExceptions implements MethodExceptionEventHandler,RuntimeServicesAware(Code) | | 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 .
author: Will Glass-Husain version: $Id: PrintExceptions.java 470256 2006-11-02 07:20:36Z wglass $ |
methodException | public Object methodException(Class claz, String method, Exception e) throws Exception(Code) | | Render the method exception, and optionally the exception message and stack trace.
Parameters: claz - the class of the object the method is being applied to Parameters: method - the method Parameters: e - the thrown exception an object to insert in the page throws: Exception - an exception to be thrown instead inserting an object |
|
|