minos.saga.exceptions

Exceptions

AlreadyCommittedException

Exception to be raised when trying to modifying an already committed saga.

AlreadyOnSagaException

Exception to be raised when a saga step is already in another saga.

EmptySagaException

Exception to be raised when saga is empty.

EmptySagaStepException

Exception to be raised when the step is empty.

ExecutorException

Exception to be raised when a saga executor raises some exception.

MultipleElseThenException

Exception to be raised when multiple else then alternatives are defined.

MultipleOnErrorException

Exception to be raised when multiple on error methods are defined.

MultipleOnExecuteException

Exception to be raised when multiple on execute methods are defined.

MultipleOnFailureException

Exception to be raised when multiple on failure methods are defined.

MultipleOnSuccessException

Exception to be raised when multiple on success methods are defined.

SagaException

Base saga exception.

SagaExecutionAlreadyExecutedException

Exception to be raised when a saga execution cannot be executed.

SagaExecutionException

Base exception for saga execution.

SagaExecutionNotFoundException

Exception to be raised when a saga execution is not found.

SagaFailedCommitCallbackException

Exception to be raised when a saga commit callback raises some exception

SagaFailedExecutionException

Exception to be raised when a saga execution failed while running.

SagaFailedExecutionStepException

Exception to be raised when a saga execution step failed while running.

SagaNotCommittedException

Exception to be raised when trying to exec a not committed saga.

SagaNotDefinedException

Exception to be raised when the saga is not defined.

SagaPausedExecutionStepException

Exception to be raised when a saga execution step is paused.

SagaResponseException

Exception to be used when CommandStatus is not SUCCESS

SagaRollbackExecutionException

Exception to be raised when a saga exception cannot be rollbacked

SagaRollbackExecutionStepException

Exception to be raised when a saga execution step failed while performing a rollback.

SagaStepException

Base exception for saga steps.

SagaStepExecutionException

Base exception for saga execution step.

UndefinedOnExecuteException

Exception to be raised when the on execute method is not defined.

exception SagaException[source]

Bases: MinosException

Base saga exception.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception EmptySagaException[source]

Bases: SagaException

Exception to be raised when saga is empty.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaNotCommittedException[source]

Bases: SagaException

Exception to be raised when trying to exec a not committed saga.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaStepException[source]

Bases: SagaException

Base exception for saga steps.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaNotDefinedException[source]

Bases: SagaStepException

Exception to be raised when the saga is not defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception EmptySagaStepException[source]

Bases: SagaStepException

Exception to be raised when the step is empty.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception MultipleOnExecuteException[source]

Bases: SagaStepException

Exception to be raised when multiple on execute methods are defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception MultipleOnFailureException[source]

Bases: SagaStepException

Exception to be raised when multiple on failure methods are defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception MultipleOnSuccessException[source]

Bases: SagaStepException

Exception to be raised when multiple on success methods are defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception MultipleOnErrorException[source]

Bases: SagaStepException

Exception to be raised when multiple on error methods are defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception MultipleElseThenException[source]

Bases: SagaStepException

Exception to be raised when multiple else then alternatives are defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception AlreadyOnSagaException[source]

Bases: SagaStepException

Exception to be raised when a saga step is already in another saga.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception UndefinedOnExecuteException[source]

Bases: SagaStepException

Exception to be raised when the on execute method is not defined.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaExecutionException[source]

Bases: SagaException

Base exception for saga execution.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaExecutionNotFoundException[source]

Bases: SagaExecutionException

Exception to be raised when a saga execution is not found.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaRollbackExecutionException[source]

Bases: SagaExecutionException

Exception to be raised when a saga exception cannot be rollbacked

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaFailedExecutionException[source]

Bases: SagaExecutionException

Exception to be raised when a saga execution failed while running.

__init__(exception, message=None)[source]
Parameters
__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaExecutionAlreadyExecutedException[source]

Bases: SagaExecutionException

Exception to be raised when a saga execution cannot be executed.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaStepExecutionException[source]

Bases: SagaException

Base exception for saga execution step.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaFailedExecutionStepException[source]

Bases: SagaStepExecutionException, SagaFailedExecutionException

Exception to be raised when a saga execution step failed while running.

__init__(exception, message=None)
Parameters
__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaPausedExecutionStepException[source]

Bases: SagaStepExecutionException

Exception to be raised when a saga execution step is paused.

__init__(message=None)[source]
Parameters

message (Optional[str]) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaRollbackExecutionStepException[source]

Bases: SagaStepExecutionException

Exception to be raised when a saga execution step failed while performing a rollback.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception AlreadyCommittedException[source]

Bases: SagaException

Exception to be raised when trying to modifying an already committed saga.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ExecutorException[source]

Bases: SagaException

Exception to be raised when a saga executor raises some exception.

__init__(exception, message=None)[source]
Parameters
__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaFailedCommitCallbackException[source]

Bases: SagaFailedExecutionException

Exception to be raised when a saga commit callback raises some exception

__init__(exception, message=None)
Parameters
__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception SagaResponseException[source]

Bases: SagaException

Exception to be used when CommandStatus is not SUCCESS

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.