Skip to main content

error

Function error 

Source
pub fn error(
    constraint: &'static str,
    message: impl Into<String>,
    location: Option<SourceLocation>,
) -> ValidationError
Expand description

Create a validation error with the given constraint code and message