# INotifyDataErrorInfo

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/model/trait-inotifydataerrorinfo/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait INotifyDataErrorInfo
```

Lets a model object report validation errors for its properties
(synchronously or asynchronously).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_data_error_info.rs#L6)

## Members

- [`has_errors`](#function-has_errors)
- [`get_errors`](#function-get_errors)
- [`errors_changed`](#function-errors_changed)

<a id="function-has_errors"></a>

### has_errors

```rust
fn has_errors(self: &Self) -> bool
```

Whether the object has validation errors.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_data_error_info.rs#L8)

<a id="function-get_errors"></a>

### get_errors

```rust
fn get_errors(self: &Self, property_name: Option<&str>) -> Vec<BoxedValue>
```

The validation errors of the property named `property_name`, or the
object-level errors when it is `None` or empty. Errors are untyped:
strings and boxed `BindingError` values
are shown as they are.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_data_error_info.rs#L14)

<a id="function-errors_changed"></a>

### errors_changed

```rust
fn errors_changed(self: &Self) -> &Event<str>
```

The event raised when the validation errors of a property (the event
argument; empty for the whole object) have changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/i_notify_data_error_info.rs#L18)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
