ferroui-reactiveui-controls 0.3.0

The integration of ReactiveUI with FerroUI: the scheduler of the dispatcher, property observation and command binding for FerroUI objects, activation, the reactive views and view hosts, the data-template hook, suspension and use_reactive_ui on the application builder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `SubscriptionErrors` (`SubscriptionErrors.cs`): handles the errors of observable subscriptions.

use ferroui_system::ObservableError;

/// Handles the errors of observable subscriptions (`SubscriptionErrors`).
pub struct SubscriptionErrors;

impl SubscriptionErrors {
    /// Rethrows the error of a subscription (`Throw`, `ExceptionDispatchInfo.Capture(error).Throw()`).
    ///
    /// Deviation (DEVIATIONS.md, ReactiveUI controls): an exception is a panic; the error is
    /// raised as a panic with its message.
    pub fn throw(error: ObservableError) -> ! {
        panic!("{error}")
    }
}