PanicError
struct · ferroui-reactiveui · v0.5.0
struct PanicError
The error of a panic of user code, caught where upstream catches an exception: the message of the panic.
Members
message
message: String
The message of the panic (Exception.Message).
from_payload
fn from_payload(payload: &dyn Any + Send) -> ObservableError
The error of a caught panic: an UnhandledError stays one, any other payload
becomes a PanicError with the text of the payload.
catch
fn catch<R>(action: impl FnOnce() -> R) -> Result<R, (ObservableError, Box<dyn Any + Send>)>
Runs action and catches its panic (try { action() } catch (Exception ex)): the result,
or the error of the panic with its payload, which std::panic::resume_unwind rethrows
(throw;).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringCloneDebugStructuralPartialEqPartialEqEqDisplayError
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.