pub enum TemplateError {
UnexpectedEndOfTemplate,
ExpectedTokenTypeButReceived((TokenValue, Received)),
UnexpectedTokenValue(TokenValue),
ExpectedOtherTokenValue((TokenValue, TokenValue)),
ExpectedArrayElement,
ArrayValueMustBeFollowedByComma,
ArrayNotClosed,
ExpectedHashElement,
HashValueMustBeFollowedByComma,
InvalidHashKey {
unexpected: TokenValue,
},
HashKeyMustBeFollowedByColon,
HashNotClosed,
ExpectedNameOrNumber,
ListOfArgumentsMustBeginWithParenthesis,
ArgumentsMustBeSeparatedByComma,
ListOfArgumentsMustCloseWithParenthesis,
Unclosed(String),
UnclosedComment,
UnclosedBlock(String),
Unexpected(String),
UnexpectedCharacter(String),
ParenthesisNotClosed,
MustStartWithTagName,
DefaultValueForArgumentMustBeConstant,
ParameterNameMustBeAString {
given: String,
},
TemplateNotFound(String),
CustomError(Box<ExtensionError>),
}
Variants
UnexpectedEndOfTemplate | |
ExpectedTokenTypeButReceived | |
UnexpectedTokenValue | |
ExpectedOtherTokenValue | |
ExpectedArrayElement | |
ArrayValueMustBeFollowedByComma | |
ArrayNotClosed | |
ExpectedHashElement | |
HashValueMustBeFollowedByComma | |
InvalidHashKey | Fields
|
HashKeyMustBeFollowedByColon | |
HashNotClosed | |
ExpectedNameOrNumber | |
ListOfArgumentsMustBeginWithParenthesis | |
ArgumentsMustBeSeparatedByComma | |
ListOfArgumentsMustCloseWithParenthesis | |
Unclosed | |
|
UnclosedBlock | |
Unexpected | |
UnexpectedCharacter | |
ParenthesisNotClosed | |
MustStartWithTagName | |
DefaultValueForArgumentMustBeConstant | |
ParameterNameMustBeAString | Fields
|
TemplateNotFound | |
CustomError | |
Methods
Trait Implementations
Derived Implementations