exception

VersionedObjects base exception handling.

Includes decorator for re-raising VersionedObjects-type exceptions.

SHOULD include dedicated exception logging.

exception oslo_versionedobjects.exception.VersionedObjectsException(message=None, **kwargs)

Base VersionedObjects Exception

To correctly use this class, inherit from it and define a ‘msg_fmt’ property. That msg_fmt will get printf’d with the keyword arguments provided to the constructor.

oslo_versionedobjects.exception.wrap_exception(notifier=None, get_notifier=None)

Catch all exceptions in wrapped method

This decorator wraps a method to catch any exceptions that may get thrown. It also optionally sends the exception to the notification system.