Skip to main content

ValidationError

No overview available.

Attributes

AttributeTypeDescription
line_errorslist[[PyLineError](pylineerror.md?sid=errors_validation_exception_pylineerror)]A collection of specific error details for each validation failure encountered during processing.
title`strAny`
input_type[InputType](../../../input/input/abstract/inputtype.md?sid=input_input_abstract_inputtype)The category of input data being validated, such as python objects or JSON strings, which determines error formatting.
hide_inputboolA flag that determines whether the original input values should be excluded from the error message for privacy or brevity.

Constructor

Signature

def ValidationError(
line_errors: List[[PyLineError](pylineerror.md?sid=errors_validation_exception_pylineerror)],
title: Any,
input_type: [InputType](../../../input/input/abstract/inputtype.md?sid=input_input_abstract_inputtype),
hide_input: bool
) - > null

Parameters

NameTypeDescription
line_errorsList[[PyLineError](pylineerror.md?sid=errors_validation_exception_pylineerror)]A list of specific line errors encountered during validation.
titleAnyThe title for the validation error.
input_type[InputType](../../../input/input/abstract/inputtype.md?sid=input_input_abstract_inputtype)The type of input that failed validation.
hide_inputboolWhether to hide the input value in the error output.

Signature

def ValidationError(
line_errors: list[[PyLineError](pylineerror.md?sid=errors_validation_exception_pylineerror)],
title: Any,
input_type: [InputType](../../../input/input/abstract/inputtype.md?sid=input_input_abstract_inputtype),
hide_input: bool
) - > None

Parameters

NameTypeDescription
line_errorslist[[PyLineError](pylineerror.md?sid=errors_validation_exception_pylineerror)]A collection of specific error details for each field or location that failed validation.
titleAnyThe title or name of the model or validator that triggered the error.
input_type[InputType](../../../input/input/abstract/inputtype.md?sid=input_input_abstract_inputtype)The format of the input data being validated, such as python or json.
hide_inputboolA flag indicating whether the original input data should be excluded from the error report for privacy or security.