onsrap.errors module

exception onsrap.errors.DependencyCycleError

Bases: PipelineValidationError

Raised when the stage graph contains a cycle. Child class with PipelineValidationError as the parent class.

exception onsrap.errors.DuplicateStageError

Bases: PipelineValidationError

Raised when two stages share the same name. Child class with PipelineValidationError as the parent class.

exception onsrap.errors.HistoricalPipelineLoadError

Bases: OnsrapError

Raised when there is an issue loading a previous PipelineRun instance.

exception onsrap.errors.MissingDependencyError

Bases: PipelineValidationError

Raised when a stage depends on an unknown stage. Child class with PipelineValidationError as the parent class.

exception onsrap.errors.OnsrapError

Bases: Exception

Base exception for onsrap.

exception onsrap.errors.PipelineConfigurationError

Bases: OnsrapError

Raised when there has been an issue with the PipelineConfig instance.

exception onsrap.errors.PipelineInitialisationError

Bases: OnsrapError

Raised when there is an error in definition of the Pipeline instance

exception onsrap.errors.PipelineValidationError

Bases: OnsrapError

Raised when the pipeline definition is invalid. Child class with OnsrapError as the parent class.

exception onsrap.errors.StageConfigurationError

Bases: PipelineValidationError

Raised when a stage definition is malformed. Child class with PipelineValidationError as the parent class.

exception onsrap.errors.StageDependencyError

Bases: OnsrapError

Raised when incorrect inputs are provided to the dependency attribute of a Stage.

exception onsrap.errors.StageExecutionError(message: str, stage_name: str | None = None, source: str | None = None, original_exception: Exception | None = None, result: StageResult | None = None)

Bases: OnsrapError

Raised when a stage fails during execution. Child class with OnsrapError as the parent class.

exception onsrap.errors.StageLoadError(message: str, stage_name: str | None = None, source: str | None = None, original_exception: Exception | None = None, result: StageResult | None = None)

Bases: StageExecutionError

Raised when a file-backed stage cannot be loaded. Child class with StageExecutionError as the parent class.