diffsync.exceptions

Exception classes used in DiffSync.

exception diffsync.exceptions.DiffClassMismatch

Bases: diffsync.exceptions.DiffException

Exception raised when a diff object is not the same as the expected diff_class.

exception diffsync.exceptions.DiffException

Bases: Exception

Base class for various failures related to Diff operations.

exception diffsync.exceptions.ObjectAlreadyExists(message, existing_object, *args, **kwargs)

Bases: diffsync.exceptions.ObjectStoreException

Exception raised when trying to store a DiffSyncModel or DiffElement that is already being stored.

__init__(message, existing_object, *args, **kwargs)

Add existing_object to the exception to provide user with existing object.

exception diffsync.exceptions.ObjectCrudException

Bases: Exception

Base class for various failures during CRUD operations.

exception diffsync.exceptions.ObjectNotCreated

Bases: diffsync.exceptions.ObjectCrudException

Exception raised if an object Create operation failed.

exception diffsync.exceptions.ObjectNotDeleted

Bases: diffsync.exceptions.ObjectCrudException

Exception raised if an object Delete operation failed.

exception diffsync.exceptions.ObjectNotFound

Bases: diffsync.exceptions.ObjectStoreException

Exception raised when trying to access a DiffSyncModel that isn’t in storage.

exception diffsync.exceptions.ObjectNotUpdated

Bases: diffsync.exceptions.ObjectCrudException

Exception raised if an object Update operation failed.

exception diffsync.exceptions.ObjectStoreException

Bases: Exception

Base class for various failures during object storage in local caches.

exception diffsync.exceptions.ObjectStoreWrongType

Bases: diffsync.exceptions.ObjectStoreException

Exception raised when trying to store a DiffSyncModel of the wrong type.