org.apache.velocity.test.misc
Class ExceptionGeneratingEventHandler
java.lang.Object
org.apache.velocity.test.misc.ExceptionGeneratingEventHandler
- All Implemented Interfaces:
- EventHandler, IncludeEventHandler, MethodExceptionEventHandler, NullSetEventHandler, ReferenceInsertionEventHandler
public class ExceptionGeneratingEventHandler
- extends Object
- implements IncludeEventHandler, MethodExceptionEventHandler, NullSetEventHandler, ReferenceInsertionEventHandler
Event handlers that always throws an exception. Used to test
that RuntimeExceptions are passed through.
- Version:
- $Id: ExceptionGeneratingEventHandler.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Will Glass-Husain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionGeneratingEventHandler
public ExceptionGeneratingEventHandler()
includeEvent
public String includeEvent(String includeResourcePath,
String currentResourcePath,
String directiveName)
- Specified by:
includeEvent
in interface IncludeEventHandler
methodException
public Object methodException(Class claz,
String method,
Exception e)
throws Exception
- Specified by:
methodException
in interface MethodExceptionEventHandler
- Throws:
Exception
shouldLogOnNullSet
public boolean shouldLogOnNullSet(String lhs,
String rhs)
- Specified by:
shouldLogOnNullSet
in interface NullSetEventHandler
referenceInsert
public Object referenceInsert(String reference,
Object value)
- Specified by:
referenceInsert
in interface ReferenceInsertionEventHandler
Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.