pub enum InterpreterError {
Show 13 variants
HtmlParseError(String),
ParserError(String),
NodeSelectionError(String),
TextExtractionError(String),
AttributeExtractionError(String),
IndexOutOfBounds(usize, usize),
InvalidStep(i64),
InvalidRegex(String),
UnknownFunction(String),
MissingArgument(String),
InvalidArgument(String),
ExecutionError(String),
ResultLimitExceeded(usize),
}
Expand description
Interpreter error
Variants§
HtmlParseError(String)
HTML parsing error
ParserError(String)
Syntax parsing error
NodeSelectionError(String)
Node selection error
TextExtractionError(String)
Text extraction error
AttributeExtractionError(String)
Attribute extraction error
IndexOutOfBounds(usize, usize)
Index out of bounds
InvalidStep(i64)
Invalid step value
InvalidRegex(String)
Regular expression error
UnknownFunction(String)
Unknown function
MissingArgument(String)
Missing argument
InvalidArgument(String)
Invalid argument
ExecutionError(String)
Execution error
ResultLimitExceeded(usize)
Result limit exceeded
Implementations§
Source§impl InterpreterError
Error helper methods
impl InterpreterError
Error helper methods
Sourcepub fn node_selection_error(message: impl Into<String>) -> Self
pub fn node_selection_error(message: impl Into<String>) -> Self
Create a node selection error
Sourcepub fn html_parse_error(message: impl Into<String>) -> Self
pub fn html_parse_error(message: impl Into<String>) -> Self
Create an HTML parsing error
Sourcepub fn text_extraction_error(message: impl Into<String>) -> Self
pub fn text_extraction_error(message: impl Into<String>) -> Self
Create a text extraction error
Sourcepub fn attribute_extraction_error(message: impl Into<String>) -> Self
pub fn attribute_extraction_error(message: impl Into<String>) -> Self
Create an attribute extraction error
Sourcepub fn execution_error(message: impl Into<String>) -> Self
pub fn execution_error(message: impl Into<String>) -> Self
Create an execution error
Sourcepub fn unknown_function(name: impl Into<String>) -> Self
pub fn unknown_function(name: impl Into<String>) -> Self
Create an unknown function error
Sourcepub fn missing_argument(message: impl Into<String>) -> Self
pub fn missing_argument(message: impl Into<String>) -> Self
Create a missing argument error
Sourcepub fn invalid_argument(message: impl Into<String>) -> Self
pub fn invalid_argument(message: impl Into<String>) -> Self
Create an invalid argument error
Trait Implementations§
Source§impl Clone for InterpreterError
impl Clone for InterpreterError
Source§fn clone(&self) -> InterpreterError
fn clone(&self) -> InterpreterError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterpreterError
impl Debug for InterpreterError
Source§impl Display for InterpreterError
impl Display for InterpreterError
Source§impl Error for InterpreterError
impl Error for InterpreterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for InterpreterError
impl From<Error> for InterpreterError
Auto Trait Implementations§
impl Freeze for InterpreterError
impl RefUnwindSafe for InterpreterError
impl Send for InterpreterError
impl Sync for InterpreterError
impl Unpin for InterpreterError
impl UnwindSafe for InterpreterError
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