Module pdpipe.exceptions

Custom exceptions for pdpipe.

Expand source code
"""Custom exceptions for pdpipe."""


class FailedPreconditionError(Exception):
    """An exception raised when a pipeline stage is applied to a dataframe for
    which the stage precondition does not hold.
    """


class FailedPostconditionError(Exception):
    """An exception raised when an expected post-condition does not hold after
    an application of the a pipeline stage to a dataframe.
    """


class FailedConditionError(Exception):
    """An exception raised when an expected condition does not hold for an
    input dataframe.
    """


class PipelineApplicationError(Exception):
    """An exception raised when an exception is thrown during the application
    of a pipeline or a pipeline stage to a dataframe.
    """


class UnfittedPipelineStageError(Exception):
    """An exception raised when a (non-fit) transform is attempted with an
    unfitted pipeline stage.
    """

Classes

class FailedConditionError (*args, **kwargs)

An exception raised when an expected condition does not hold for an input dataframe.

Expand source code
class FailedConditionError(Exception):
    """An exception raised when an expected condition does not hold for an
    input dataframe.
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException
class FailedPostconditionError (*args, **kwargs)

An exception raised when an expected post-condition does not hold after an application of the a pipeline stage to a dataframe.

Expand source code
class FailedPostconditionError(Exception):
    """An exception raised when an expected post-condition does not hold after
    an application of the a pipeline stage to a dataframe.
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException
class FailedPreconditionError (*args, **kwargs)

An exception raised when a pipeline stage is applied to a dataframe for which the stage precondition does not hold.

Expand source code
class FailedPreconditionError(Exception):
    """An exception raised when a pipeline stage is applied to a dataframe for
    which the stage precondition does not hold.
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException
class PipelineApplicationError (*args, **kwargs)

An exception raised when an exception is thrown during the application of a pipeline or a pipeline stage to a dataframe.

Expand source code
class PipelineApplicationError(Exception):
    """An exception raised when an exception is thrown during the application
    of a pipeline or a pipeline stage to a dataframe.
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException
class UnfittedPipelineStageError (*args, **kwargs)

An exception raised when a (non-fit) transform is attempted with an unfitted pipeline stage.

Expand source code
class UnfittedPipelineStageError(Exception):
    """An exception raised when a (non-fit) transform is attempted with an
    unfitted pipeline stage.
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException