cadrumo.application.flows.errors module¶
Canonical flow-substrate error hierarchy.
Every substrate error inherits from CadrumoError so callers
catch the package-wide base class to handle every cadrumo domain error
uniformly. The substrate raises typed, translated errors only; raw
operator answers never ride in error context.
- exception FlowError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorBase class for every flow-substrate error.
- Parameters:
- Return type:
None
- code¶
- exception FlowValidatorRegistryError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowErrorRaised on a blank, duplicate, or unknown validator-id registration or lookup.
- Parameters:
- Return type:
None
- code¶
Bases:
FlowErrorRaised when a navigation intent names a page the current state cannot reach.
- Parameters:
- Return type:
None
- exception FlowAnswerError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowError,CoreValidationErrorRaised when an answer intent targets a page that cannot accept it.
Inherits from
CoreValidationErrorto participate in the shared validation catch surface.- Parameters:
- Return type:
None
- code¶
- exception FlowSubmitError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowErrorRaised when submission is attempted while the review gate refuses it.
- Parameters:
- Return type:
None
- code¶
- exception FlowCheckpointError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowErrorRaised when a checkpoint or resume operation cannot complete.
- Parameters:
- Return type:
None
- code¶
- exception FlowCopyResolutionError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowErrorRaised when a copy reference cannot be resolved against its declared source.
- Parameters:
- Return type:
None
- code¶
- exception FlowRunAbandonedError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowErrorRaised when the operator abandons a line-mode prompt loop (Ctrl-C).
The line frontend prompts through
unsafe_askso aKeyboardInterruptsurfaces at the frontend boundary as a typed, translated refusal instead of being swallowed into a silent re-prompt with no cancel path. Context carries flow metadata only — never a raw operator answer.- Parameters:
- Return type:
None
- code¶
- exception FlowUnsupportedConsoleError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
FlowErrorRaised when the host terminal cannot host an interactive flow frontend.
Surfaces when
prompt_toolkitrejects the active TTY (typicallyNoConsoleScreenBufferErrorunder git-bash on Windows) or stdin is not a TTY. Frontends catch this at their boundary and surface a translated operator-facing refusal, never a raw traceback.- Parameters:
- Return type:
None
- code¶