ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::data::{BindingError, BindingErrorType};

/// The error state of a binding expression: the error and its kind.
///
/// (The managed counterpart is named like [`BindingError`], which in this
/// port is the error object itself.)
#[derive(Clone, Debug)]
pub struct ExpressionError {
    pub exception: BindingError,
    pub error_type: BindingErrorType,
}

impl ExpressionError {
    pub fn new(exception: BindingError, error_type: BindingErrorType) -> Self {
        Self { exception, error_type }
    }
}