Inherits from NSObject
Declared in CMISErrors.h

Overview

This class defines Errors in the Objective-C CMIS library

All CMIS errors are based on NSError class. CMIS errors are created either

  • directly. This is the case when an error is captured by one of the methods/classes in the CMIS library
  • indirectly. Errors have been created by classes/methods outside the CMIS library. Example errors created through NSURLConnection. In this case, the underlying error is copied into the CMIS error using the NSUnderlyingErrorKey in the userInfo Dictionary.

Class Methods

cmisError:cmisErrorCode:

Create a CMIS error based on an underlying error

+ (NSError *)cmisError:(NSError *)error cmisErrorCode:(CMISErrorCodes)code

Parameters

error

The underlying NSError object

code

the CMIS error code

Return Value

the CMIS error as NSError object with error domain org.apache.chemistry.objectivecmis

Discussion

Create a CMIS error based on an underlying error

This is the indirect way of creating CMIS errors

Declared In

CMISErrors.h

createCMISErrorWithCode:detailedDescription:

Creates a new CMIS error

+ (NSError *)createCMISErrorWithCode:(CMISErrorCodes)code detailedDescription:(NSString *)detailedDescription

Parameters

code

the CMIS Error code to be used

detailedDescription

a detailed description to be added to the localizedDescription. Use nil if none is available/needed.

Return Value

the CMIS error as NSError object with error domain org.apache.chemistry.objectivecmis

Discussion

Creates a new CMIS error

This is the direct way of creating CMIS errors

Declared In

CMISErrors.h