Class MustacheException.Context

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    MustacheException

    public static class MustacheException.Context
    extends MustacheException
    An exception thrown if we encounter a context error (e.g. a missing variable) while compiling or executing a template.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String key
      The key that caused the problem.
      int lineNo
      The line number of the template on which the problem occurred.
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(java.lang.String message, java.lang.String key, int lineNo)  
      Context​(java.lang.String message, java.lang.String key, int lineNo, java.lang.Throwable cause)  
    • Method Summary

      • 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

      • key

        public final java.lang.String key
        The key that caused the problem.
      • lineNo

        public final int lineNo
        The line number of the template on which the problem occurred.
    • Constructor Detail

      • Context

        public Context​(java.lang.String message,
                       java.lang.String key,
                       int lineNo)
      • Context

        public Context​(java.lang.String message,
                       java.lang.String key,
                       int lineNo,
                       java.lang.Throwable cause)