Class VanTemplateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
dev.vanengine.core.VanTemplateException
- All Implemented Interfaces:
Serializable
Thrown when a .van template cannot be compiled or evaluated.
Carries file path and expression context for diagnostics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVanTemplateException(String message, String templatePath) VanTemplateException(String message, String templatePath, String expression) VanTemplateException(String message, String templatePath, String expression, int line, int column) VanTemplateException(String message, String templatePath, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionintintgetLine()static int[]offsetToLineCol(String source, int offset) Convert a character offset in source text to line:column.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VanTemplateException
-
VanTemplateException
-
VanTemplateException
-
VanTemplateException
-
-
Method Details
-
getTemplatePath
-
getExpression
-
getLine
public int getLine() -
getColumn
public int getColumn() -
offsetToLineCol
Convert a character offset in source text to line:column.- Returns:
- int[]{line, column} (1-based)
-