IWErrorManager

This framework is written with the Objective-C.

Constructor

shared

+ (IWErrorManager *)shared

Description

  • Initializes IWErrorManager

Return Value

  • Initialized IWErrorManager singleton object

Setting

setErrorCode

- (void)setErrorCode:(NSUInteger)code message:(NSString *)message

Description

  • Sets the error code and message.

Parameters

Type

Parameter

Description

NSUInteger

code

Error code

NSString

message

Error message

For error code and message please refer to IWErrorDef.h.

Getting

getLastErrorCode

- (NSUInteger)getLastErrorCode

Description

  • Gets an error code in the last occurred error

Return Value

  • Error code

For error code ad message, please refer to IWErrorDef.h

getLastErrorMessage

- (NSString *)getLastErrorMessage

Description

  • Gets an error message in the last occurred error

Return Value

  • Error message

For error code and message, please refer to IWErrorDef.h

getLastErrorCodeAndMessage

- (NSString *)getLastErrorCodeAndMessage

Description

  • Gets an error message and error code in the last occurred error

Return Value

  • Error message and error code

For error code and message, please refer to IWErrorDef.h

Resetting

reset

- (void)reset

Description

  • Initializes error code and message

Last updated