Enum umm::grade::QueryError
source · pub enum QueryError {
NoFileSelected,
NoCaptureSelected(String),
NoPreviousQuery,
FileNotFound(String),
DuringQueryExecution {
q: String,
e: String,
},
NoMatchesFound(String),
Unknown(Error),
}
Expand description
An enum to represent possible errors when running a query.
Variants§
NoFileSelected
No file was selected to run the query on.
NoCaptureSelected(String)
No capture was selected to extract from the query.
NoPreviousQuery
No previous query to add capture or filter to.
FileNotFound(String)
The file selected to run the query on does not exist.
DuringQueryExecution
The query could not be run.
NoMatchesFound(String)
No matches found for a previously selected capture, all subsequent queries will return nothing.
Unknown(Error)
Unknown error.
Trait Implementations§
source§impl Debug for QueryError
impl Debug for QueryError
source§impl Display for QueryError
impl Display for QueryError
source§impl Error for QueryError
impl Error for QueryError
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()
Auto Trait Implementations§
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more