Enum hotspots_parser::Error
source · pub enum Error {
NotCompatible,
NoFilesAdded,
TSQuery(QueryError),
ParseFile(String),
FileNotFound(String),
OpenFile(Error),
Utf8Str(Utf8Error),
Language(LanguageError),
}
Expand description
Error enumerates all errors for this application.
Variants§
NotCompatible
Returned when we can’t get the repository information.
NoFilesAdded
Returned when no files were added to the parser.
TSQuery(QueryError)
Returned when there is a query error.
ParseFile(String)
Returned when we can’t parse a file.
FileNotFound(String)
Returned when the file is not found.
OpenFile(Error)
Returned when we can’t open a file.
Utf8Str(Utf8Error)
Returned when the file contains invalid UTF-8 characters.
Language(LanguageError)
Returned when tree-sitter can’t set the given language.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<LanguageError> for Error
impl From<LanguageError> for Error
source§fn from(source: LanguageError) -> Self
fn from(source: LanguageError) -> Self
Converts to this type from the input type.
source§impl From<QueryError> for Error
impl From<QueryError> for Error
source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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