aeat.application._errors module¶
Typed application errors for diagnostics model construction.
This module currently owns the diagnostics-specific validation error raised by
application.diagnostics.DiagnosticCheck validators while building
application.diagnostics.ConfigRepairReport rows. The class
inherits from core.errors.CoreValidationError, so it remains
catchable as ValueError for Pydantic validator compatibility while still
participating in the project-wide core.errors.AeatError registry
and core.errors.ErrorEnvelope rendering path.
- exception DiagnosticModelError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
CoreValidationErrorRaised when
application.diagnostics.DiagnosticCheckviolates its invariants.DiagnosticCheckrows with statusfailorwarnmust carry exactly one ofnext_actionordead_end;okrows must carry neither. The per-causeapplication.diagnostics.DiagnosticFindingrows stay supplementary; they do not replace the required recovery channel. The validator raises this typedcore.errors.CoreValidationErrorinstead of a bareValueErrorso Pydantic can wrap it as the cause of a validation failure while CLI and JSON callers can still render a registeredcore.errors.ErrorEnvelopethroughcore.errors.build_error_envelope().- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶