Exceptions (objetto.exceptions)

Exceptions.

exception objetto.exceptions.ActionObserversFailedError(message, exception_infos)

Action observers failed while observing action.

Inherits from:
Parameters

exception_infos (tuple[objetto.observers.ActionObserverExceptionData]) – Observer exception infos.

property exception_infos

Observer exception infos.

Return type

tuple[objetto.observers.ActionObserverExceptionData]

exception objetto.exceptions.RejectChangeException(message, change, callback)

Exception to be raised from within a reaction. This will cause the change to be reverted and and the custom callback function to run after that.

Inherits from:
Parameters
property change

Change to reject.

Return type

objetto.bases.BaseChange

property callback

Callback to run after change is rewound.

Return type

function or collections.abc.Callable

exception objetto.exceptions.HistoryError

History failed to execute.

Inherits from:
exception objetto.exceptions.SerializationError

Failed to serialize/deserialize structure.

Inherits from: