Package org.apache.velocity.exception
Class VelocityException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.velocity.exception.VelocityException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MacroOverflowException,MathException,MethodInvocationException,ParseErrorException,ResourceNotFoundException,TemplateInitException
public class VelocityException extends java.lang.RuntimeExceptionBase class for Velocity runtime exceptions thrown to the application layer.- Version:
- $Id$
- Author:
- Kyle F. Downey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VelocityException(java.lang.String exceptionMessage)VelocityException(java.lang.String exceptionMessage, java.lang.Throwable wrapped)VelocityException(java.lang.String exceptionMessage, java.lang.Throwable wrapped, java.lang.String[] vtlStackTrace)VelocityException(java.lang.Throwable wrapped)VelocityException(java.lang.Throwable wrapped, java.lang.String[] vtlStackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String[]getVtlStackTrace()java.lang.ThrowablegetWrappedThrowable()Deprecated.UseThrowable.getCause()
-
-
-
Constructor Detail
-
VelocityException
public VelocityException(java.lang.String exceptionMessage)
- Parameters:
exceptionMessage- The message to register.
-
VelocityException
public VelocityException(java.lang.String exceptionMessage, java.lang.Throwable wrapped)- Parameters:
exceptionMessage- The message to register.wrapped- A throwable object that caused the Exception.- Since:
- 1.5
-
VelocityException
public VelocityException(java.lang.String exceptionMessage, java.lang.Throwable wrapped, java.lang.String[] vtlStackTrace)- Parameters:
exceptionMessage- The message to register.wrapped- A throwable object that caused the Exception.vtlStackTrace- VTL stacktrace- Since:
- 2.2
-
VelocityException
public VelocityException(java.lang.Throwable wrapped)
- Parameters:
wrapped- A throwable object that caused the Exception.- Since:
- 1.5
-
VelocityException
public VelocityException(java.lang.Throwable wrapped, java.lang.String[] vtlStackTrace)- Parameters:
wrapped- A throwable object that caused the Exception.vtlStackTrace- VTL stacktrace- Since:
- 2.2
-
-
Method Detail
-
getWrappedThrowable
public java.lang.Throwable getWrappedThrowable()
Deprecated.UseThrowable.getCause()returns the wrapped Throwable that caused this MethodInvocationException to be thrown- Returns:
- Throwable thrown by method invocation
- Since:
- 1.5
-
getVtlStackTrace
public java.lang.String[] getVtlStackTrace()
-
-