Errors¶
Exceptions raised by flex-orchestrator.
Every error subclasses FlexOrchestratorError, so callers can catch the
base class for any orchestrator failure or a concrete subclass for one category.
Messages say what went wrong and how to fix it.
- exception flexorchestrator.errors.FlexOrchestratorError[source]¶
Bases:
ExceptionBase class for all flex-orchestrator errors.
- exception flexorchestrator.errors.HookError[source]¶
Bases:
FlexOrchestratorErrorA build/solve hook can’t be resolved or broke its contract.
Raised for a malformed or unimportable import string, an unknown registered hook name, a hook slot that isn’t set, or a solve hook that returns something other than a
SolveOutcome.
- exception flexorchestrator.errors.SpecError[source]¶
Bases:
FlexOrchestratorErrorA spec, its tag or assets, or a path into it is invalid.
Raised for a spec that isn’t a JSON object or fails its format’s validation, a spec stored as the wrong kind, an invalid tag, a stored spec whose hash doesn’t match, a configuration-option path or asset pointer that doesn’t resolve, and a surrogate aimed at a unit the spec doesn’t have. (A bad override path in the default build raises flex-pse’s own error.)
- exception flexorchestrator.errors.ExportError[source]¶
Bases:
FlexOrchestratorErrorModel values can’t be exported.
Raised for a key that names nothing, ambiguous or inconsistent time sets, two values that would be stored under the same key, or a named component with non-numeric values.
- exception flexorchestrator.errors.UnitError[source]¶
Bases:
FlexOrchestratorErrorA unit can’t be mapped to QUDT (in strict mode) or converted.
- exception flexorchestrator.errors.StorageError[source]¶
Bases:
FlexOrchestratorErrorThe storage backend refused a write or read.
Raised for a label already declared with another kind, a write to a run that isn’t running, a timeseries without datetimes, and errors reported by Acquirium.
- exception flexorchestrator.errors.DBAuthError[source]¶
Bases:
StorageErrorPostgres refused the database login of a managed Acquirium.
The message names the redacted
user@host:port/dband never the password.
- exception flexorchestrator.errors.StudyExistsError[source]¶
Bases:
FlexOrchestratorErrorcreate_studywas given the name of a study that exists.
- exception flexorchestrator.errors.StudyNotFoundError[source]¶
Bases:
FlexOrchestratorError,LookupErrorThe study doesn’t exist, or no study is selected.
- exception flexorchestrator.errors.TagExistsError[source]¶
Bases:
FlexOrchestratorErrorAn item with this kind and tag is already stored in the study.
A run that failed doesn’t count, so a failed tag can be stored again.
- exception flexorchestrator.errors.TagNotFoundError[source]¶
Bases:
FlexOrchestratorError,LookupErrorNothing is stored in the study under this kind and tag.
- exception flexorchestrator.errors.AmbiguousColumnError[source]¶
Bases:
FlexOrchestratorError,LookupErrorA column name looked up across datasets is in more than one.
- exception flexorchestrator.errors.StudyConfigError[source]¶
Bases:
FlexOrchestratorErrorA study config (
StudyConfig) is invalid or can’t be expanded.Raised for a config that fails validation, an
output_namethat renders an invalid or repeated tag, sweeps of different lengths withcombine: zip, and execution options this version can’t run.
- exception flexorchestrator.errors.FitError[source]¶
Bases:
FlexOrchestratorErrorA surrogate can’t be fitted from the data selected.
Raised for a selector that matches nothing (or, for
resolve, more than one stream), data that can’t be aligned or has gaps, units that don’t convert, and a regressor that can’t be resolved or fails.
- exception flexorchestrator.errors.ModelInputError[source]¶
Bases:
FlexOrchestratorErrorStored data can’t be set on a model variable.
Raised for a
model_inputsentry whose selector matches nothing, whose data has a gap itsgapsrule can’t fill, or that a model without a time axis can’t take, and for two entries (or an entry and avariablesweep) setting one path.
- exception flexorchestrator.errors.CommandError[source]¶
Bases:
FlexOrchestratorErrorA command can’t be found, registered or run.
Raised for an unknown command, a name registered twice, and parameters that don’t validate against the command’s params model.
- exception flexorchestrator.errors.CommandCancelled[source]¶
Bases:
CommandErrorA command stopped because its
Progresswas cancelled.
- exception flexorchestrator.errors.PluginError[source]¶
Bases:
FlexOrchestratorErrorA plugin can’t be loaded.
Raised for a plugin whose
api_versiondoesn’t include this version’sPLUGIN_API_VERSION, a name that isn’t installed, and collisions between plugins (command or hook names, or two orchestrator subclasses).
- exception flexorchestrator.errors.ArchiveError[source]¶
Bases:
FlexOrchestratorErrorA study export can’t be written or read back.
Raised for an export into a folder that isn’t empty, a file whose schema version this version doesn’t read, and a checksum that doesn’t match.