snapred.backend.error package
Submodules
snapred.backend.error.AlgorithmException module
snapred.backend.error.RecoverableException module
- exception snapred.backend.error.RecoverableException.RecoverableException(message: str, flags: Type = 0, data: Any | None = None)
Bases:
ExceptionRaised when a recoverable exception is thrown. Allows for custom error types and optional extra context.
- class Model(**data: Any)
Bases:
BaseModel- flags: RecoverableException.Type
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class Type(value)
Bases:
Flag- CALIBRATION_HOME_WRITE_PERMISSION = 2
- STATE_UNINITIALIZED = 1
- UNSET = 0
- property data
- property flags
- property message
- static parse_raw(raw)