Class VelocityException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MacroOverflowException, MathException, MethodInvocationException, ParseErrorException, ResourceNotFoundException, TemplateInitException

public class VelocityException extends RuntimeException
Base class for Velocity runtime exceptions thrown to the application layer.
Version:
$Id$
Author:
Kyle F. Downey
See Also:
  • Constructor Details

    • VelocityException

      public VelocityException(String exceptionMessage)
      Parameters:
      exceptionMessage - The message to register.
    • VelocityException

      public VelocityException(String exceptionMessage, Throwable wrapped)
      Parameters:
      exceptionMessage - The message to register.
      wrapped - A throwable object that caused the Exception.
      Since:
      1.5
    • VelocityException

      public VelocityException(String exceptionMessage, Throwable wrapped, 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(Throwable wrapped)
      Parameters:
      wrapped - A throwable object that caused the Exception.
      Since:
      1.5
    • VelocityException

      public VelocityException(Throwable wrapped, String[] vtlStackTrace)
      Parameters:
      wrapped - A throwable object that caused the Exception.
      vtlStackTrace - VTL stacktrace
      Since:
      2.2
  • Method Details

    • getWrappedThrowable

      public Throwable getWrappedThrowable()
      Deprecated.
      returns the wrapped Throwable that caused this MethodInvocationException to be thrown
      Returns:
      Throwable thrown by method invocation
      Since:
      1.5
    • getVtlStackTrace

      public String[] getVtlStackTrace()