Class VelocityException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private LogContext logContext
      LogContext VTL location tracking context
      private static long serialVersionUID
      Version Id for serializable
      private java.lang.String[] vtlStackTrace
      VTL vtlStackTrace, populated at construction when runtime.log.track_location is true
    • 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.Throwable getWrappedThrowable()
      Deprecated.
      Use Throwable.getCause()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Version Id for serializable
        See Also:
        Constant Field Values
      • logContext

        private LogContext logContext
        LogContext VTL location tracking context
      • vtlStackTrace

        private java.lang.String[] vtlStackTrace
        VTL vtlStackTrace, populated at construction when runtime.log.track_location is true
    • 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.
        Use Throwable.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()