Enum erl_pp::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 15 variants
UnexpectedToken {
token: LexicalToken,
expected: String,
},
IncludeFileError {
source: Error,
directive_start: Position,
directive_end: Position,
target_file_path: PathBuf,
},
MissingMacroArg {
position: Position,
},
UnbalancedParen {
open: Option<SymbolToken>,
close: SymbolToken,
},
UnexpectedEof,
FileNotSet {
macro_call: MacroCall,
},
UndefinedMacro {
macro_call: MacroCall,
},
UndefinedMacroVar {
varname: String,
},
MacroArgsMismatched {
macro_call: MacroCall,
macro_def: MacroDef,
},
NonUtf8Path {
path: PathBuf,
},
UnexpectedDotInMacroDef {
position: Position,
},
MissingIfDirective {
directive: Directive,
},
TokenizeError(Error),
GlobPatternError(PatternError),
GlobError(GlobError),
}
Expand description
Possible errors.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unexpected token.
Fields of UnexpectedToken
token: LexicalToken
expected: String
Include file error.
Fields of IncludeFileError
Missing a macro argument.
Fields of MissingMacroArg
position: Position
Unbalanced parentheses.
Fields of UnbalancedParen
open: Option<SymbolToken>
close: SymbolToken
Unexpected EOF.
Cannot expand ?FILE macro.
Fields of FileNotSet
macro_call: MacroCall
Undefined macro.
Fields of UndefinedMacro
macro_call: MacroCall
Undefined macro variable.
Fields of UndefinedMacroVar
varname: String
Macro arguments mismatched.
Non UTF-8 path.
Fields of NonUtf8Path
path: PathBuf
Unexpected ‘.’ in -define
directive.
Fields of UnexpectedDotInMacroDef
position: Position
Missing -ifdef
or -ifndef
.
Fields of MissingIfDirective
directive: Directive
TokenizeError(Error)
Tokenize error.
Tuple Fields of TokenizeError
0: Error
GlobPatternError(PatternError)
Glob pattern error.
Tuple Fields of GlobPatternError
0: PatternError
GlobError(GlobError)
Glob error.
Tuple Fields of GlobError
0: GlobError
Trait Implementations
Performs the conversion.