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
- 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
change (objetto.bases.BaseChange) – Change to reject.
callback (function or collections.abc.Callable) – Callback to run after change is rewound.
- property change
Change to reject.
- Return type
- 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: