minos.aggregate.exceptions module¶
- exception minos.aggregate.exceptions.AggregateException(error_message)[source]¶
Bases:
minos.common.exceptions.MinosExceptionBase 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.SnapshotRepositoryExceptionException 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.SnapshotRepositoryExceptionException 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.EventRepositoryExceptionException to be raised when some
EventEntryraises a conflict.- 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.AggregateExceptionBase 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.SnapshotRepositoryExceptionException to be raised when current version is newer than the one to be processed.
- 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.AggregateExceptionBase 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.TransactionRepositoryExceptionException 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.TransactionRepositoryExceptionException 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.AggregateExceptionBase 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.AggregateExceptionIf 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.