Errors#

The storages raise the following SCIMException, which scim2-server turns into error responses:

Exception

Raised when

NotFoundException

The resource does not exist, or its identifier cannot have the type of the key column.

PreconditionFailedException

The stored version differs from expected_version, or another transaction changed the record before the write.

UniquenessException

Another resource holds a unique value of the resource, such as its userName.

InvalidValueException

The resource holds a value no mapping stores, an entry of a Link without value, or a link to an unknown resource.

MutabilityException

The resource changes an attribute the mapping only reads, or removes a value whose column cannot be NULL.

InvalidFilterException

The filter compares an attribute the mapping does not store, or a write-only attribute.

InvalidPathException

The search sorts on an attribute the mapping does not store, or on a Link.

An integrity error of the database other than a unique value already taken goes through as a sqlalchemy.exc.IntegrityError.