Coconut I/O Framework  beta
Public Member Functions
NSError(CNErrorExtending) Class Reference

Extend NSError class. More...

#import <CNErrorExtension.h>

List of all members.

Public Member Functions

(id) - initWithDomain:code:description:failureReason:recoveryOption:filePath:
 Initialize with error reasons.
(NSString *) - description
 Get description from error information.
(NSString *) - failureReason
 Get failure reason from error information.
(NSString *) - recoveryOption
 Get recovery option from error information.
(NSString *) - filePath
 Get file path from error information.
(void) - debugContents:
 Dump context of the object for debugging.

Detailed Description

Extend NSError class.


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:
errorAllocated NSError object
nilFailed to allocate NSError
Parameters:
domainDomain for this error
codeError code for this error.
descDescription (You can pass nil)
reasonFailure reason (You can pass nil)
recovoptRecovery option (You can pass nil)
fpathError file path (You can pass nil)
- (NSString *) description

Get description from error information.

Return values:
strDescription string
nilNo description
- (NSString *) failureReason

Get failure reason from error information.

Return values:
strFailure reason string
nilNo failure reason
- (NSString *) recoveryOption

Get recovery option from error information.

Return values:
strRecovery option string
nilNo recovery option
- (NSString *) filePath

Get file path from error information.

Return values:
strFile path string
nilFile path
- (void) debugContents: (FILE *)  outfp

Dump context of the object for debugging.

Parameters:
outfpOutput file to print the context

The documentation for this class was generated from the following file: