#import <CNErrorCreator.h>
Public Member Functions | |
| (id) | - initWithErrorCode: |
| Initialize objects in CNErrorCreator class. | |
| (void) | - dealloc |
| Release objects in CNErrorCreator class. | |
| (void) | - setDescription: |
| Set error description. | |
| (void) | - addDescription: |
| Add error description to current. | |
| (NSString *) | - description |
| Get error description. | |
| (void) | - setFailureReason: |
| Set failure reason. | |
| (void) | - setRecoverySuggestion: |
| Set recovery suggestion. | |
| (void) | - setRecoveryOptions: |
| Set array of strings to choose recovery option. | |
| (NSError *) | - create |
| Allocate auto-released NSError object with given parameters previously. | |
Static Public Member Functions | |
| (NSError *) | + errorCode:withDescription: |
| Get error object which has given error code and description. | |
| (NSError *) | + posixError: |
| Create error object with POSIX error code. | |
| - (void) setDescription: | (NSString *) | desc |
Set error description.
| desc | String for error description |
| - (void) addDescription: | (NSString *) | desc |
Add error description to current.
| desc | String for error description |
| - (NSString *) description |
Get error description.
| - (void) setFailureReason: | (NSString *) | reason |
Set failure reason.
| reason | String for failure reason |
| - (void) setRecoverySuggestion: | (NSString *) | suggestion |
Set recovery suggestion.
| suggestion | String for recovery suggestion |
| - (void) setRecoveryOptions: | (NSArray *) | options |
Set array of strings to choose recovery option.
| options | Array of string |
| - (NSError *) create |
Allocate auto-released NSError object with given parameters previously.
| + (NSError *) errorCode: | (CNErrorCode) | code | ||
| withDescription: | (NSString *) | desc | ||
Get error object which has given error code and description.
| code | Error code | |
| desc | Error description |
| + (NSError *) posixError: | (int) | errcode |
Create error object with POSIX error code.
| errcode | Posix error code |
1.5.2