Enum pest_debugger::DebuggerError
source · pub enum DebuggerError {
Io(Error),
MissingFilename,
GrammarNotOpened,
InputNotOpened,
RunRuleFirst,
EofReached,
InvalidPosition(usize),
IncorrectGrammar(String, Vec<Error<Rule>>),
PreviousRunPanic(String),
}
Expand description
Possible errors that can occur in the debugger context.
Variants§
Io(Error)
Errors from opening files etc.
MissingFilename
When a filename can’t be extracted from a grammar path.
GrammarNotOpened
Running a debugger requires a grammar to be provided.
InputNotOpened
Running a debugger requires a parsing input to be provided.
RunRuleFirst
Continuing a debugger session requires starting a session by running a rule.
EofReached
Parsing finished (i.e. cannot continue the session).
InvalidPosition(usize)
Can’t create a Position
in a given input.
IncorrectGrammar(String, Vec<Error<Rule>>)
The provided grammar is invalid.
The first element contains a formatted error message.
The second element (Vec
) contains the errors.
PreviousRunPanic(String)
When restarting a session, the previous session seem to have panicked.
Trait Implementations§
source§impl Debug for DebuggerError
impl Debug for DebuggerError
source§impl Display for DebuggerError
impl Display for DebuggerError
source§impl Error for DebuggerError
impl Error for DebuggerError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()