Skip to main content

from_value_error

Function from_value_error 

Source
pub fn from_value_error(
    constraint: &'static str,
    err: ValidationError,
    location: Option<SourceLocation>,
) -> ValidationError
Expand description

Convert a type validation error to an instance validation error

Use this when a types::validators::ValidationError needs to be reported with a specific cvc-* constraint code.