Skip to main content

ValError

This enum represents the different types of errors that can occur during validation, including structured line errors, internal Python errors, and signals for omitting values or using defaults.

Attributes

AttributeTypeDescription
LineErrorsVec< ValLineError >A collection of specific validation failures encountered during the data processing operation.
InternalErrPyErrAn underlying Python exception that triggered a failure within the validation logic.
OmitA signal indicating that the current value should be excluded from the final validated output.
UseDefaultA signal indicating that the validation should ignore the input and instead apply the field's defined default value.

Constructor

Signature

def LineErrors(
errors: Vec< ValLineError >
) - > [ValError](valerror.md?sid=errors_line_error_valerror)

Parameters

NameTypeDescription
errorsVec< ValLineError >A vector containing individual validation error details for specific lines or fields.

Signature

def InternalErr(
err: PyErr
) - > [ValError](valerror.md?sid=errors_line_error_valerror)

Parameters

NameTypeDescription
errPyErrThe original Python exception instance to be wrapped.

Signature

def Omit() - > [ValError](valerror.md?sid=errors_line_error_valerror)

Signature

def UseDefault() - > [ValError](valerror.md?sid=errors_line_error_valerror)