cadrumo.application.storage.calc_sheets.errors module

Typed exception hierarchy for the calc-sheets application layer.

Every subclass inherits from cadrumo.core.errors.hierarchy.CadrumoError; the project error registry’s __init_subclass__ hook binds each subclass to its declared cadrumo.core.errors.error_codes.ErrorCode row at import time.

exception CalcSheetsEngineError(message=None, *, context=None, translated_message=None)[source]

Bases: CadrumoError

Raised when the sheet-export engine encounters an unresolvable state.

Covers unsupported registry rounding codes and missing dated parameter values that prevent engine from producing a valid export plan.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
exception CalcSheetsRecordError(message=None, *, context=None, translated_message=None)[source]

Bases: CoreValidationError

Raised when a calc-sheets record operation fails validation.

Covers column-index utility failures (out-of-range or malformed A1 column letters) that prevent SheetCellAddress construction. Inherits from CoreValidationError so pydantic validators can surface it as structured validation failure without losing the project-wide CadrumoError contract.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code
exception CalcSheetsParityError(message=None, *, context=None, translated_message=None)[source]

Bases: CadrumoError

Raised when a parity-harness scenario references unknown casillas.

Fired when a test scenario’s canonical casilla ids cannot all be resolved in the registry snapshot, making the scenario unprovable.

Parameters:
  • message (str | None)

  • context (Mapping[str, object] | None)

  • translated_message (str | None)

Return type:

None

code