AlfrescoErrors Class Reference
Inherits from | NSObject |
Declared in | AlfrescoErrors.h |
Overview
AlfrescoErrors is used in case an error occurs when executing an operation against the Alfresco repository.
Author: Peter Schmidt (Alfresco)
Tasks
Error creation methods.
-
+ alfrescoErrorWithUnderlyingError:andAlfrescoErrorCode:
Creates an error object based on another NSError instance.
-
+ alfrescoErrorWithAlfrescoErrorCode:
Creates an error object based on an error code and a description.
-
+ assertArgumentNotNil:argumentName:
asserts that an argument is not nil. If a required argument is nil, this is considered a fatal error, and the SDK will throw an exception. This will most likely cause the app to exit/crash. @param argument @param argumentName
-
+ assertStringArgumentNotNilOrEmpty:argumentName:
asserts that an argument is not nil. If a required argument is nil, this is considered a fatal error, and the SDK will throw an exception. This will most likely cause the app to exit/crash. @param argument @param argumentName
Class Methods
alfrescoErrorWithAlfrescoErrorCode:
Creates an error object based on an error code and a description.
+ (NSError *)alfrescoErrorWithAlfrescoErrorCode:(AlfrescoErrorCodes)code
Parameters
- code
the code string that represents the error type.
Return Value
The newly created error.
Discussion
Creates an error object based on an error code and a description.
Declared In
AlfrescoErrors.h
alfrescoErrorWithUnderlyingError:andAlfrescoErrorCode:
Creates an error object based on another NSError instance.
+ (NSError *)alfrescoErrorWithUnderlyingError:(NSError *)error andAlfrescoErrorCode:(AlfrescoErrorCodes)code
Parameters
- error
The error that’s used to create an Alfresco error instance.
- code
the code string that represents the error type.
Return Value
The newly created error.
Discussion
Creates an error object based on another NSError instance.
Declared In
AlfrescoErrors.h
assertArgumentNotNil:argumentName:
asserts that an argument is not nil. If a required argument is nil, this is considered a fatal error, and the SDK will throw an exception. This will most likely cause the app to exit/crash. @param argument @param argumentName
+ (void)assertArgumentNotNil:(id)argument argumentName:(NSString *)argumentName
Discussion
asserts that an argument is not nil. If a required argument is nil, this is considered a fatal error, and the SDK will throw an exception. This will most likely cause the app to exit/crash. @param argument @param argumentName
Declared In
AlfrescoErrors.h
assertStringArgumentNotNilOrEmpty:argumentName:
asserts that an argument is not nil. If a required argument is nil, this is considered a fatal error, and the SDK will throw an exception. This will most likely cause the app to exit/crash. @param argument @param argumentName
+ (void)assertStringArgumentNotNilOrEmpty:(NSString *)argument argumentName:(NSString *)argumentName
Discussion
asserts that an argument is not nil. If a required argument is nil, this is considered a fatal error, and the SDK will throw an exception. This will most likely cause the app to exit/crash. @param argument @param argumentName
Declared In
AlfrescoErrors.h