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:
Serializable
- Direct Known Subclasses:
MacroOverflowException
,MathException
,MethodInvocationException
,ParseErrorException
,ResourceNotFoundException
,TemplateInitException
Base class for Velocity runtime exceptions thrown to the
application layer.
- Version:
- $Id: VelocityException.java 685685 2008-08-13 21:43:27Z nbubna $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Version Id for serializableprivate final Throwable
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityException
(String exceptionMessage) VelocityException
(String exceptionMessage, Throwable wrapped) VelocityException
(Throwable wrapped) -
Method Summary
Modifier and TypeMethodDescriptionreturns the wrapped Throwable that caused this MethodInvocationException to be thrownMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDVersion Id for serializable- See Also:
-
wrapped
-
-
Constructor Details
-
VelocityException
- Parameters:
exceptionMessage
- The message to register.
-
VelocityException
- Parameters:
exceptionMessage
- The message to register.wrapped
- A throwable object that caused the Exception.- Since:
- 1.5
-
VelocityException
- Parameters:
wrapped
- A throwable object that caused the Exception.- Since:
- 1.5
-
-
Method Details
-
getWrappedThrowable
returns the wrapped Throwable that caused this MethodInvocationException to be thrown- Returns:
- Throwable thrown by method invocation
- Since:
- 1.5
-