pub struct RuntimeError {
pub code: u32,
pub params: Vec<ErrParam>,
pub detail: Option<String>,
}Expand description
An error raised by the VM itself, as opposed to an exception object a program throws.
Fields§
§code: u32The error number; one of the constants in code.
params: Vec<ErrParam>Values for the message’s % fields, in order.
detail: Option<String>More about this occurrence, after the message: for a function called with the wrong number of arguments, which one it was.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
impl Eq for RuntimeError
Source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl Forget for RuntimeError
impl Freeze for RuntimeError
impl Move for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeErrorwhere
RawVecInner: Send,
impl Sync for RuntimeErrorwhere
RawVecInner: Sync,
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ErrParam>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for RuntimeErrorwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.