aeat.application.auth._errors module¶
Application-level domain errors for the auth surface.
AuthDiagnosticPhoneStateError and AuthDiagnosticPayloadError
specialise core.errors.CoreValidationError for auth diagnostic
validation failures.
- exception AuthDiagnosticPhoneStateError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
CoreValidationErrorRaised when an unrecognised phone-state value is supplied to the auth diagnostic recorder.
Replaces the bare
ValueErrorat the validation guard inapplication.auth._diagnostics.record_auth_diagnostic_phone_state()so callers can catch a typed, registry-bound error. Inherits fromcore.errors.CoreValidationError(which inherits fromValueError) so any existingexcept ValueErrorguard continues to match.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- exception AuthDiagnosticPayloadError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
CoreValidationErrorRaised when an encrypted auth diagnostic payload fails structural validation.
Replaces the bare
ValueErrorraises inapplication.auth._diagnostics._payload()(non-object JSON body) andapplication.auth._diagnostics._summary_from_payload()(missingcaptured_atfield). Inherits fromcore.errors.CoreValidationError(which inherits fromValueError) so any existingexcept ValueErrorguard continues to match.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶