Exceptions

CMIS 1.0 CMIS 1.1 Spec 2.2.1.4

Exceptions are divided into three groups: general exceptions, specific exceptions, and implementation exceptions.
General exceptions and specific exceptions are defined in the CMIS specification. Implementation exceptions are exceptions introduced by OpenCMIS and PortCMIS. Those exceptions handle connection and authentication problems.

General Exceptions

General exceptions may be returned by a repository in response to any CMIS service method call.

invalidArgument

One or more of the input parameters is missing or invalid.

notSupported

The CMIS operation is not supported by the repository.

objectNotFound

The object, or object type, or repository does not exist or the current user has no permission to see it.

permissionDenied

The user does not have sufficient permissions to perform the operation.

runtime

Any other cause not expressible by another CMIS exception.

Specific Exceptions

The following exceptions may be returned by a repository in response to one or more CMIS service methods calls.

constraint

The operation violates a repository- or object-level constraint defined in the CMIS domain model.

contentAlreadyExists

The operation attempts to set the content stream for a document that already has a content stream without explicitly specifying the “overwriteFlag” parameter.

filterNotValid

The property filter or rendition filter input to the operation is not valid.

nameConstraintViolation

The repository is not able to store the object that the user is creating/updating due to a name constraint violation. There could already be an object with the same name or the name contains a character that is not allowed.

storage

The repository is not able to store the object that the user is creating/updating due to an internal storage problem.

streamNotSupported

The operation is attempting to get or set a content stream for a document whose object type specifies that a content stream is not allowed for documents of that type.

updateConflict

The operation is attempting to update an object that is no longer current (as determined by the repository).

versioning

The operation is attempting to perform an action on a non-current version of a document that cannot be performed on a non-current version.

Implementation Exceptions

base

The OpenCMIS and PortCMIS exceptions are all derived from the CMIS base exception. If you want handle all CMIS exceptions at once, catch the CmisBaseException.

connection

The client could not connect to the repository for some reason. Check if you need to configure a proxy server.

unauthorized

User authentication failed.

proxyAuthentication

Proxy authentication failed.

serviceUnavailable

The server reported that the CMIS service is currently not available.