pub struct ThrownError {
pub message: String,
pub backtrace: Option<WasmBacktrace>,
pub denial: Option<Denial>,
}Expand description
An uncaught thrown Error, carrying its name: message text plus the
throw-site backtrace the engine attached to the escaped exception;
uncaught_error re-wraps both here so render prints a source
backtrace like a trap.
Fields§
§message: String§backtrace: Option<WasmBacktrace>§denial: Option<Denial>Set when the escaped error is a denial the runtime itself threw, as
opposed to a PermissionDeniedError the program constructed.
Trait Implementations§
Source§impl Debug for ThrownError
impl Debug for ThrownError
Source§impl Display for ThrownError
impl Display for ThrownError
Source§impl Error for ThrownError
impl Error for ThrownError
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()
Auto Trait Implementations§
impl Freeze for ThrownError
impl RefUnwindSafe for ThrownError
impl Send for ThrownError
impl Sync for ThrownError
impl Unpin for ThrownError
impl UnsafeUnpin for ThrownError
impl UnwindSafe for ThrownError
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