ferroui_base/data/core/binding_error.rs
1use crate::data::{BindingError, BindingErrorType};
2
3/// The error state of a binding expression: the error and its kind.
4///
5/// (The managed counterpart is named like [`BindingError`], which in this
6/// port is the error object itself.)
7#[derive(Clone, Debug)]
8pub struct ExpressionError {
9 pub exception: BindingError,
10 pub error_type: BindingErrorType,
11}
12
13impl ExpressionError {
14 pub fn new(exception: BindingError, error_type: BindingErrorType) -> Self {
15 Self { exception, error_type }
16 }
17}