Skip to content

Commit

Permalink
chore(pipeline): add deprecated PipelineConfigError
Browse files Browse the repository at this point in the history
PipelineConfigError was removed in 8f22399 but was still used outside of
caput. This adds a deprecated version.

BREAKING CHANGE: caput.pipeline.PipelineConfigError is deprecated and
will be removed in July 2021. Use caput.config.CaputConfigError instead.
  • Loading branch information
nritsche committed Jan 21, 2021
1 parent f7e2334 commit 4635833
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions caput/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,19 @@
# ----------


class PipelineConfigError(config.CaputConfigError):
"""Deprecated. Raised when there is an error setting up a pipeline."""

def __init__(self, message):
warnings.warn(
"caput.pipeline.PipelineConfigError is deprecated. It will get removed in December 2021. "
"Use caput.config.CaputConfigError instead.",
DeprecationWarning,
2,
)
super(PipelineConfigError, self).__init__(message)


class PipelineRuntimeError(Exception):
"""Raised when there is a pipeline related error at runtime."""

Expand Down

0 comments on commit 4635833

Please sign in to comment.