@OpenApiAll
public class MethodExceptionHandler
extends org.apache.velocity.app.event.implement.PrintExceptions
methodException(Class, String, Exception)
and reference to method name is corrupted. This class will
manage it manually to avoid error reference in Velocity.Constructor and Description |
---|
MethodExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
methodException(java.lang.Class clazz,
java.lang.String method,
java.lang.Exception e)
Render the method exception, and optionally the exception message and stack trace.
|
public java.lang.Object methodException(java.lang.Class clazz, java.lang.String method, java.lang.Exception e) throws java.lang.Exception
null
to keep valid reference and property pass to
VelocityReferenceHandler.invalidGetMethod(org.apache.velocity.context.Context, java.lang.String, java.lang.Object, java.lang.String, org.apache.velocity.util.introspection.Info)
methodException
in interface org.apache.velocity.app.event.MethodExceptionEventHandler
methodException
in class org.apache.velocity.app.event.implement.PrintExceptions
clazz
- the class of the object the method is being applied tomethod
- the methode
- the thrown exceptionnull
object.java.lang.Exception
- an exception to be thrown instead inserting an objectCopyright © 2010 - No Magic Asia