exception

VersionedObjects base exception handling.

Includes decorator for re-raising VersionedObjects-type exceptions.

SHOULD include dedicated exception logging.

exception oslo_versionedobjects.exception.ConvertedException(code=0, title='', explanation='')
exception oslo_versionedobjects.exception.EnumFieldInvalid(message=None, **kwargs)
exception oslo_versionedobjects.exception.EnumFieldUnset(message=None, **kwargs)
exception oslo_versionedobjects.exception.EnumRequiresValidValuesError(message=None, **kwargs)
exception oslo_versionedobjects.exception.EnumValidValuesInvalidError(message=None, **kwargs)
exception oslo_versionedobjects.exception.IncompatibleObjectVersion(message=None, **kwargs)
exception oslo_versionedobjects.exception.InvalidTargetVersion(message=None, **kwargs)
exception oslo_versionedobjects.exception.ObjectActionError(message=None, **kwargs)
exception oslo_versionedobjects.exception.ObjectFieldInvalid(message=None, **kwargs)
exception oslo_versionedobjects.exception.OrphanedObjectError(message=None, **kwargs)
exception oslo_versionedobjects.exception.ReadOnlyFieldError(message=None, **kwargs)
exception oslo_versionedobjects.exception.TargetBeforeSubobjectExistedException(message=None, **kwargs)
exception oslo_versionedobjects.exception.UnsupportedObjectError(message=None, **kwargs)
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.