Class VanTemplateException

All Implemented Interfaces:
Serializable

public class VanTemplateException extends IllegalArgumentException
Thrown when a .van template cannot be compiled or evaluated. Carries file path and expression context for diagnostics.
See Also:
  • Constructor Details

    • VanTemplateException

      public VanTemplateException(String message, String templatePath)
    • VanTemplateException

      public VanTemplateException(String message, String templatePath, String expression)
    • VanTemplateException

      public VanTemplateException(String message, String templatePath, Throwable cause)
    • VanTemplateException

      public VanTemplateException(String message, String templatePath, String expression, int line, int column)
  • Method Details

    • getTemplatePath

      public String getTemplatePath()
    • getExpression

      public String getExpression()
    • getLine

      public int getLine()
    • getColumn

      public int getColumn()
    • offsetToLineCol

      public static int[] offsetToLineCol(String source, int offset)
      Convert a character offset in source text to line:column.
      Returns:
      int[]{line, column} (1-based)