minos.aggregate.exceptions

Exceptions

AggregateException

Base Aggregate module exception

AlreadyDeletedException

Exception to be raised when a RootEntity is already deleted from the repository.

EventRepositoryConflictException

Exception to be raised when some EventEntry raises a conflict.

EventRepositoryException

Base event repository exception.

NotFoundException

Exception to be raised when a RootEntity is not found on the repository.

RefException

Exception to be raised when some reference can not be resolved.

SnapshotRepositoryConflictException

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

SnapshotRepositoryException

Base snapshot exception.

TransactionNotFoundException

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

TransactionRepositoryConflictException

Exception to be raised when a transaction has invalid status.

TransactionRepositoryException

Base transaction repository exception.

ValueObjectException

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

exception AggregateException[source]

Bases: MinosException

Base Aggregate module 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 EventRepositoryException[source]

Bases: AggregateException

Base event repository 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 EventRepositoryConflictException[source]

Bases: EventRepositoryException

Exception to be raised when some EventEntry raises a conflict.

__init__(error_message, offset)[source]
Parameters
  • error_message (str) –

  • offset (int) –

__new__(**kwargs)
args
with_traceback()

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

exception TransactionRepositoryException[source]

Bases: AggregateException

Base transaction repository 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 TransactionRepositoryConflictException[source]

Bases: TransactionRepositoryException

Exception to be raised when a transaction has invalid status.

__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 TransactionNotFoundException[source]

Bases: TransactionRepositoryException

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

__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 SnapshotRepositoryException[source]

Bases: AggregateException

Base snapshot 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 SnapshotRepositoryConflictException[source]

Bases: SnapshotRepositoryException

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

__init__(previous, event)[source]
Parameters
__new__(**kwargs)
args
with_traceback()

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

exception NotFoundException[source]

Bases: SnapshotRepositoryException

Exception to be raised when a RootEntity is not found on the repository.

__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 AlreadyDeletedException[source]

Bases: SnapshotRepositoryException

Exception to be raised when a RootEntity is already deleted from the repository.

__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 ValueObjectException[source]

Bases: AggregateException

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

__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 RefException[source]

Bases: AggregateException

Exception to be raised when some reference can not be resolved.

__init__(error_message)
Parameters

error_message (str) –

__new__(**kwargs)
args
with_traceback()

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