minos.aggregate.exceptions module

exception minos.aggregate.exceptions.AggregateException(error_message)[source]

Bases: minos.common.exceptions.MinosException

Base Aggregate module exception

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.AggregateNotFoundException(error_message)[source]

Bases: minos.aggregate.exceptions.SnapshotRepositoryException

Exception to be raised when some aggregate is not found on the repository.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.DeletedAggregateException(error_message)[source]

Bases: minos.aggregate.exceptions.SnapshotRepositoryException

Exception to be raised when some aggregate is already deleted from the repository.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.EventRepositoryConflictException(error_message, offset)[source]

Bases: minos.aggregate.exceptions.EventRepositoryException

Exception to be raised when some EventEntry raises a conflict.

__init__(error_message, offset)[source]
args
with_traceback()

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

exception minos.aggregate.exceptions.EventRepositoryException(error_message)[source]

Bases: minos.aggregate.exceptions.AggregateException

Base event repository exception.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.SnapshotRepositoryConflictException(previous, aggregate_diff)[source]

Bases: minos.aggregate.exceptions.SnapshotRepositoryException

Exception to be raised when current version is newer than the one to be processed.

__init__(previous, aggregate_diff)[source]
args
with_traceback()

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

exception minos.aggregate.exceptions.SnapshotRepositoryException(error_message)[source]

Bases: minos.aggregate.exceptions.AggregateException

Base snapshot exception.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.TransactionNotFoundException(error_message)[source]

Bases: minos.aggregate.exceptions.TransactionRepositoryException

Exception to be raised when some transaction is not found on the repository.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.TransactionRepositoryConflictException(error_message)[source]

Bases: minos.aggregate.exceptions.TransactionRepositoryException

Exception to be raised when a transactions has invalid status.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.TransactionRepositoryException(error_message)[source]

Bases: minos.aggregate.exceptions.AggregateException

Base transaction repository exception.

__init__(error_message)
args
with_traceback()

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

exception minos.aggregate.exceptions.ValueObjectException(error_message)[source]

Bases: minos.aggregate.exceptions.AggregateException

If an attribute of an immutable class is modified, this exception will be raised

__init__(error_message)
args
with_traceback()

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