snapred.backend.error package

Submodules

snapred.backend.error.AlgorithmException module

exception snapred.backend.error.AlgorithmException.AlgorithmException(algorithm, context='')

Bases: Exception

Raised when a Mantid Algorithm fails

snapred.backend.error.RecoverableException module

exception snapred.backend.error.RecoverableException.RecoverableException(message: str, flags: Type = 0, data: Any | None = None)

Bases: Exception

Raised when a recoverable exception is thrown. Allows for custom error types and optional extra context.

class Model(**data: Any)

Bases: BaseModel

data: Any
flags: RecoverableException.Type
message: str
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)
static stateUninitialized(runNumber: str, useLiteMode: bool)

snapred.backend.error.UserException module

exception snapred.backend.error.UserException.UserException(message)

Bases: Exception

Raised when a User supplies invalid input

Module contents