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
sourceimpl Debug for DebuggerError
impl Debug for DebuggerError
sourceimpl Display for DebuggerError
impl Display for DebuggerError
sourceimpl Error for DebuggerError
impl Error for DebuggerError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for DebuggerError
impl Send for DebuggerError
impl Sync for DebuggerError
impl Unpin for DebuggerError
impl !UnwindSafe for DebuggerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more