FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    message

    message: String
    

    The message of the panic (Exception.Message).

    Source

    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.

    Source

    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;).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Display
    • Error

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.