pub struct DataValidationException { /* private fields */ }Expand description
An error that describes a data validation failure reported by a model object.
Implementations§
Source§impl DataValidationException
impl DataValidationException
Sourcepub fn new(error_data: Option<BoxedValue>) -> Self
pub fn new(error_data: Option<BoxedValue>) -> Self
Creates the error from the data received from the validation source.
Sourcepub fn error_data(&self) -> Option<&BoxedValue>
pub fn error_data(&self) -> Option<&BoxedValue>
The data of the validation error.
Trait Implementations§
Source§impl Clone for DataValidationException
impl Clone for DataValidationException
Source§impl Debug for DataValidationException
impl Debug for DataValidationException
Source§impl Display for DataValidationException
impl Display for DataValidationException
Source§impl Error for DataValidationException
impl Error for DataValidationException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl MarkupTyped for DataValidationException
impl MarkupTyped for DataValidationException
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for DataValidationException
Two errors are equal if they carry the same error data, so that the error
can be held in an untyped value.
impl PartialEq for DataValidationException
Two errors are equal if they carry the same error data, so that the error can be held in an untyped value.
Auto Trait Implementations§
impl !RefUnwindSafe for DataValidationException
impl !Send for DataValidationException
impl !Sync for DataValidationException
impl !UnwindSafe for DataValidationException
impl Freeze for DataValidationException
impl Unpin for DataValidationException
impl UnsafeUnpin for DataValidationException
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more