Extend NSError class.
More...
#import <CNErrorExtension.h>
List of all members.
Detailed Description
Member Function Documentation
- (id) initWithDomain: |
|
(NSString *) |
domain |
code: |
|
(NSInteger) |
code |
description: |
|
(NSString *) |
desc |
failureReason: |
|
(NSString *) |
reason |
recoveryOption: |
|
(NSString *) |
recovopt |
filePath: |
|
(NSString *) |
fpath |
|
|
| |
Initialize with error reasons.
- Return values:
-
error | Allocated NSError object |
nil | Failed to allocate NSError |
- Parameters:
-
domain | Domain for this error |
code | Error code for this error. |
desc | Description (You can pass nil) |
reason | Failure reason (You can pass nil) |
recovopt | Recovery option (You can pass nil) |
fpath | Error file path (You can pass nil) |
- (NSString *) description |
|
|
|
Get description from error information.
- Return values:
-
str | Description string |
nil | No description |
- (NSString *) failureReason |
|
|
|
Get failure reason from error information.
- Return values:
-
str | Failure reason string |
nil | No failure reason |
- (NSString *) recoveryOption |
|
|
|
Get recovery option from error information.
- Return values:
-
str | Recovery option string |
nil | No recovery option |
Get file path from error information.
- Return values:
-
str | File path string |
nil | File path |
- (void) debugContents: |
|
(FILE *) |
outfp |
|
Dump context of the object for debugging.
- Parameters:
-
outfp | Output file to print the context |
The documentation for this class was generated from the following file: