pub struct WolframError { /* private fields */ }
Implementations§
Source§impl WolframError
impl WolframError
Sourcepub fn kind(&self) -> &WolframErrorKind
pub fn kind(&self) -> &WolframErrorKind
Get the kind of the error
pub fn as_report(&self) -> Diagnostic
Source§impl WolframError
impl WolframError
Sourcepub fn runtime_error<S>(message: S) -> Selfwhere
S: ToString,
pub fn runtime_error<S>(message: S) -> Selfwhere
S: ToString,
Define a runtime error
Sourcepub fn syntax_error<S>(message: S) -> Selfwhere
S: ToString,
pub fn syntax_error<S>(message: S) -> Selfwhere
S: ToString,
Define a syntax error
Sourcepub fn set_file_span(&mut self, span: FileSpan)
pub fn set_file_span(&mut self, span: FileSpan)
Set the file and location where the error occurred
Sourcepub fn with_file_span(self, span: FileSpan) -> Self
pub fn with_file_span(self, span: FileSpan) -> Self
Set the file and location where the error occurred
Trait Implementations§
Source§impl Debug for WolframError
impl Debug for WolframError
Source§impl Display for WolframError
impl Display for WolframError
Source§impl Error for WolframError
impl Error for WolframError
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 WolframError
impl From<Error> for WolframError
Source§impl From<WolframErrorKind> for WolframError
impl From<WolframErrorKind> for WolframError
Source§fn from(value: WolframErrorKind) -> Self
fn from(value: WolframErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WolframError
impl RefUnwindSafe for WolframError
impl Send for WolframError
impl Sync for WolframError
impl Unpin for WolframError
impl UnwindSafe for WolframError
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