Struct spacetimedb_vm::errors::ErrorLang
source · pub struct ErrorLang {
pub kind: ErrorKind,
pub msg: Option<String>,
pub context: Option<Vec<ErrorCtx>>,
}Expand description
Define the main User Error type for the VM
Fields§
§kind: ErrorKind§msg: Option<String>§context: Option<Vec<ErrorCtx>>Optional context for the Error: Which record was not found, what value was invalid, etc.
Implementations§
Trait Implementations§
source§impl Error for ErrorLang
impl Error for ErrorLang
1.30.0 · 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<RelationError> for ErrorLang
impl From<RelationError> for ErrorLang
source§fn from(err: RelationError) -> Self
fn from(err: RelationError) -> Self
Converts to this type from the input type.
source§impl Ord for ErrorLang
impl Ord for ErrorLang
source§impl PartialEq for ErrorLang
impl PartialEq for ErrorLang
source§impl PartialOrd for ErrorLang
impl PartialOrd for ErrorLang
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ErrorLang
impl StructuralEq for ErrorLang
impl StructuralPartialEq for ErrorLang
Auto Trait Implementations§
impl RefUnwindSafe for ErrorLang
impl Send for ErrorLang
impl Sync for ErrorLang
impl Unpin for ErrorLang
impl UnwindSafe for ErrorLang
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