Skip to content

exceptions

Module of all Merlin-specific exception types.

HardFailException

Bases: Exception

Exception for fatal Merlin errors. Should cause workflow to terminate.

Source code in merlin/exceptions/__init__.py
class HardFailException(Exception):
    """
    Exception for fatal Merlin errors. Should cause
    workflow to terminate.
    """

    def __init__(self):
        super().__init__()

InvalidChainException

Bases: Exception

Exception for invalid Merlin step Directed Acyclic Graphs (DAGs).

Source code in merlin/exceptions/__init__.py
class InvalidChainException(Exception):
    """
    Exception for invalid Merlin step Directed Acyclic Graphs (DAGs).
    """

    def __init__(self):
        super().__init__()

MerlinInvalidTaskServerError

Bases: Exception

Exception to signal that an invalid task server was provided.

Source code in merlin/exceptions/__init__.py
class MerlinInvalidTaskServerError(Exception):
    """
    Exception to signal that an invalid task server was provided.
    """

NoWorkersException

Bases: Exception

Exception to signal that no workers were started to process a non-empty queue(s).

Source code in merlin/exceptions/__init__.py
class NoWorkersException(Exception):
    """
    Exception to signal that no workers were started
    to process a non-empty queue(s).
    """

    def __init__(self, message):
        super().__init__(message)

RestartException

Bases: Exception

Exception to signal that a step needs to call the restart command if present , else retry.

Source code in merlin/exceptions/__init__.py
class RestartException(Exception):
    """
    Exception to signal that a step needs to call
    the restart command if present , else retry.
    """

    def __init__(self):
        super().__init__()

RetryException

Bases: Exception

Exception to signal that a step needs to be retried.

Source code in merlin/exceptions/__init__.py
class RetryException(Exception):
    """
    Exception to signal that a step needs to be
    retried.
    """

    def __init__(self):
        super().__init__()

SoftFailException

Bases: Exception

Exception for non-fatal Merlin errors. Workflow should continue.

Source code in merlin/exceptions/__init__.py
class SoftFailException(Exception):
    """
    Exception for non-fatal Merlin errors. Workflow
    should continue.
    """

    def __init__(self):
        super().__init__()