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
| Attribute | Type | Description |
|---|---|---|
| LineErrors | Vec< ValLineError > | A collection of specific validation failures encountered during the data processing operation. |
| InternalErr | PyErr | An underlying Python exception that triggered a failure within the validation logic. |
| Omit | A signal indicating that the current value should be excluded from the final validated output. | |
| UseDefault | A 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
| Name | Type | Description |
|---|---|---|
| errors | Vec< 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
| Name | Type | Description |
|---|---|---|
| err | PyErr | The 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)