org.melati.template.velocity
Class PassbackMethodExceptionEventHandler

Package class diagram package PassbackMethodExceptionEventHandler
java.lang.Object
  extended by org.melati.template.velocity.PassbackMethodExceptionEventHandler
All Implemented Interfaces:
org.apache.velocity.app.event.EventHandler, org.apache.velocity.app.event.MethodExceptionEventHandler

public class PassbackMethodExceptionEventHandler
extends Object
implements org.apache.velocity.app.event.MethodExceptionEventHandler

Reference 'null reference' event handler. Called when a non-quiet reference ($foo vs $!foo) is null (not in the TemplateContext), which would result in '$foo' being rendered. Please return what you want rendered into the output stream.

Author:
Geir Magnusson Jr. geirm At optonline.net

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.velocity.app.event.MethodExceptionEventHandler
org.apache.velocity.app.event.MethodExceptionEventHandler.MethodExceptionExecutor
 
Constructor Summary
PassbackMethodExceptionEventHandler()
           
 
Method Summary
 Object methodException(Class claz, String method, Exception e)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassbackMethodExceptionEventHandler

public PassbackMethodExceptionEventHandler()
Method Detail

methodException

public Object methodException(Class claz,
                              String method,
                              Exception e)
                       throws Exception

Specified by:
methodException in interface org.apache.velocity.app.event.MethodExceptionEventHandler
Throws:
Exception
See Also:
MethodExceptionEventHandler.methodException(java.lang.Class, java.lang.String, java.lang.Exception)


Copyright © 2000-2010 PanEris. All Rights Reserved.