TemplateException class
TemplateException is used to obtain the line and column numbers of the token which caused parse or render to fail.
Constructors
- TemplateException(String message, String? templateName, String? source, int? offset)
Properties
- column → int
-
The 1-based column number of the token where formatting error was found.
no setter
- context → String
-
A short source substring of the source at the point the problem occurred
with parsing or rendering.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- line → int
-
The 1-based line number of the token where formatting error was found.
no setter
- message → String
-
A message describing the problem parsing or rendering the template.
final
- offset → int?
-
The character offset within the template source.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String?
-
The template source.
final
- templateName → String?
-
The name used to identify the template, as passed to the Template
constructor.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited