pub enum XdlError {
Show 27 variants
ParseError {
message: String,
line: usize,
column: usize,
},
TypeMismatch {
expected: String,
actual: String,
},
DimensionError(String),
IndexError(String),
RuntimeError(String),
VariableNotFound(String),
FunctionNotFound(String),
ProcedureNotFound(String),
InvalidArgument(String),
IoError(String),
MathError(String),
MemoryError(String),
SystemError(String),
CompileError(String),
SyntaxError(String),
FileNotFound(String),
DivisionByZero,
Overflow {
operation: String,
},
Underflow {
operation: String,
},
NotImplemented(String),
InternalError(String),
Break,
Continue,
Return(XdlValue),
Goto(String),
InvalidAssignmentTarget,
InvalidValue(String),
}Expand description
Main XDL error type
Variants§
ParseError
TypeMismatch
DimensionError(String)
IndexError(String)
RuntimeError(String)
VariableNotFound(String)
FunctionNotFound(String)
ProcedureNotFound(String)
InvalidArgument(String)
IoError(String)
MathError(String)
MemoryError(String)
SystemError(String)
CompileError(String)
SyntaxError(String)
FileNotFound(String)
DivisionByZero
Overflow
Underflow
NotImplemented(String)
InternalError(String)
Break
Continue
Return(XdlValue)
Goto(String)
InvalidAssignmentTarget
InvalidValue(String)
Trait Implementations§
Source§impl Error for XdlError
impl Error for XdlError
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<T> From<DrawingAreaErrorKind<T>> for XdlError
impl<T> From<DrawingAreaErrorKind<T>> for XdlError
Source§fn from(err: DrawingAreaErrorKind<T>) -> Self
fn from(err: DrawingAreaErrorKind<T>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for XdlError
Auto Trait Implementations§
impl Freeze for XdlError
impl RefUnwindSafe for XdlError
impl Send for XdlError
impl Sync for XdlError
impl Unpin for XdlError
impl UnwindSafe for XdlError
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