AlgorithmError#

exception lsst.pipe.base.AlgorithmError(*args: Any, **kwargs: Any)#

Bases: RepeatableQuantumError, ABC

Exception that may be raised by PipelineTasks (and code they delegate to) in order to indicate a repeatable algorithmic failure that will not be addressed by retries.

Subclass this exception to define the metadata associated with the error (for example: number of data points in a fit vs. degrees of freedom).

abstract property metadata: Mapping[str, str | float | int | bool | Mapping[str, str | float | int | bool | NestedMetadataDict]] | None#

Metadata from the raising Task with more information about the failure. The contents of the dict are Task-dependent, and must have str keys and str, int, float, bool, or nested-dictionary (with the same key and value types) values.