#[non_exhaustive]pub enum ErrorKind {
Show 22 variants
NonPrimitive,
NonKey,
InvalidOperation,
SyntaxError,
TemplateNotFound,
TooManyArguments,
MissingArgument,
UnknownFilter,
UnknownTest,
UnknownFunction,
UnknownMethod,
BadEscape,
UndefinedError,
BadSerialization,
CannotDeserialize,
BadInclude,
EvalBlock,
CannotUnpack,
WriteFailure,
OutOfFuel,
InvalidDelimiter,
UnknownBlock,
}
Expand description
An enum describing the error kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NonPrimitive
A non primitive value was encountered where one was expected.
NonKey
A value is not valid for a key in a map.
InvalidOperation
An invalid operation was attempted.
SyntaxError
The template has a syntax error
TemplateNotFound
A template was not found.
TooManyArguments
Too many arguments were passed to a function.
MissingArgument
A expected argument was missing
UnknownFilter
A filter is unknown
UnknownTest
A test is unknown
UnknownFunction
A function is unknown
UnknownMethod
Un unknown method was called
BadEscape
A bad escape sequence in a string was encountered.
UndefinedError
An operation on an undefined value was attempted.
BadSerialization
Not able to serialize this value.
CannotDeserialize
Not able to deserialize this value.
BadInclude
An error happened in an include.
EvalBlock
An error happened in a super block.
CannotUnpack
Unable to unpack a value.
WriteFailure
Failed writing output.
OutOfFuel
Engine ran out of fuel
InvalidDelimiter
Error creating aho-corasick delimiters
UnknownBlock
An unknown block was called