Enum piston_meta::ParseError
source · pub enum ParseError {
Show 14 variants
ExpectedWhitespace(DebugId),
ExpectedNewLine(DebugId),
ExpectedSomething(DebugId),
ExpectedNumber(DebugId),
ParseNumberError(ParseNumberError, DebugId),
ExpectedText(DebugId),
EmptyTextNotAllowed(DebugId),
ParseStringError(ParseStringError, DebugId),
ExpectedTag(Arc<String>, DebugId),
DidNotExpectTag(Arc<String>, DebugId),
InvalidRule(&'static str, DebugId),
NoRules,
ExpectedEnd,
Conversion(String),
}
Expand description
Errors reporting expected values.
Variants§
ExpectedWhitespace(DebugId)
Whitespace is required.
ExpectedNewLine(DebugId)
New line is required.
ExpectedSomething(DebugId)
Something is required.
ExpectedNumber(DebugId)
Expected number.
ParseNumberError(ParseNumberError, DebugId)
Error when parsing float.
ExpectedText(DebugId)
Expected text.
EmptyTextNotAllowed(DebugId)
Empty text not allowed.
ParseStringError(ParseStringError, DebugId)
Invalid string format.
ExpectedTag(Arc<String>, DebugId)
Expected token.
DidNotExpectTag(Arc<String>, DebugId)
Did not expected token.
InvalidRule(&'static str, DebugId)
An invalid rule.
NoRules
No rules are specified.
ExpectedEnd
Expected to reach the end.
Conversion(String)
Conversion error.