cadrumo.application.errors module¶
Typed application errors for diagnostics model construction.
This module currently owns the diagnostics-specific validation error raised by
application.diagnostic_models.DiagnosticCheck validators while building
application.diagnostic_models.ConfigRepairReport rows. The class
inherits from core.errors.hierarchy.CoreValidationError, so it remains
catchable as ValueError for Pydantic validator compatibility while still
participating in the project-wide core.errors.hierarchy.CadrumoError registry
and core.errors.error_codes.ErrorEnvelope rendering path.
- exception DiagnosticModelError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CoreValidationErrorRaised when
application.diagnostic_models.DiagnosticCheckviolates its invariants.DiagnosticCheckrows with statusfailorwarnmust carry exactly one ofnext_actionordead_end;okrows must carry neither. The per-causeapplication.diagnostic_models.DiagnosticFindingrows stay supplementary; they do not replace the required recovery channel. The validator raises this typedcore.errors.hierarchy.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.error_codes.ErrorEnvelopethroughcore.errors.error_codes.build_error_envelope().- Parameters:
- Return type:
None
- code¶