Enum parmacl::ParseErrorTypeId
source · [−]pub enum ParseErrorTypeId {
Show 17 variants
QuotedParamNotFollowedByWhitespaceChar,
NoMatchForOptionWithValue,
QuotedOptionValueNotFollowedByWhitespaceChar,
EscapeCharacterAtEndOfLine,
EscapedCharacterInOptionValueCannotBeEscaped,
EscapeCharacterAtEndOfOptionValue,
ParamMissingClosingQuoteCharacter,
EscapedCharacterInParamCannotBeEscaped,
EscapeCharacterAtEndOfParam,
OptionCodeMissingDoubleAnnouncer,
OptionCodeCannotContainQuoteChar,
OptionCodeCannotContainEscapeChar,
OptionMissingValue,
OptionValueCannotStartWithOptionAnnouncer,
OptionValueMissingClosingQuoteCharacter,
UnmatchedOption,
UnmatchedParam,
}
Expand description
The types of errors which can returned by the Parser parse functions
Variants
QuotedParamNotFollowedByWhitespaceChar
A quoted parameter was not followed by a white space character. This can be caused by embedding a quote character within the quoted string.
NoMatchForOptionWithValue
An option argument requires a value but no matcher found which supports both the option code and allows the option to have a value.
QuotedOptionValueNotFollowedByWhitespaceChar
A quoted option value was not followed by a white space character. This can be caused by embedding a quote character within the quoted string.
EscapeCharacterAtEndOfLine
Escape character is at the end of line.
EscapedCharacterInOptionValueCannotBeEscaped
An escaped character in an option value cannot be escaped.
EscapeCharacterAtEndOfOptionValue
Escape character is at the end of an option value.
ParamMissingClosingQuoteCharacter
A quoted parameter argument is missing the closing quote character.
EscapedCharacterInParamCannotBeEscaped
An escaped character in a parameter cannot be escaped.
EscapeCharacterAtEndOfParam
Escape character is at the end of a parameter.
OptionCodeMissingDoubleAnnouncer
Option code with length longer than 1 requires a double announcer.
OptionCodeCannotContainQuoteChar
Option code cannot contain a quote character.
OptionCodeCannotContainEscapeChar
Option code cannot contain an escape character.
OptionMissingValue
Option requires a value but value is missing.
OptionValueCannotStartWithOptionAnnouncer
Option value cannot start with option announcer character.
OptionValueMissingClosingQuoteCharacter
A quoted option value is missing the closing quote character.
UnmatchedOption
No match found for option argument.
UnmatchedParam
No match found for parameter argument.
Implementations
sourceimpl ParseErrorTypeId
impl ParseErrorTypeId
sourcepub fn get_default_text(&self) -> &str
pub fn get_default_text(&self) -> &str
Get the default (English) text which describes an error type.