TemplateEngineException class

Exception thrown by TemplateEngine during rendering.

Covers:

  • Template file not found
  • Variable not found in data
  • Invalid syntax (future)
Implemented types

Constructors

TemplateEngineException(String? message)
Generic constructor.
TemplateEngineException.templateNotFound(String? errorMessage)
Thrown when a template file cannot be located.
TemplateEngineException.variableNotFound(String? errorMessage)
Thrown when a variable is referenced but not present in data.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
Error message.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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