TCGBError Class Reference
Inherits from | NSError |
---|---|
Declared in | TCGBError.h |
Initialization
+ resultWithCode:
Creates TCGBError instance.
+ (TCGBError *)resultWithCode:(NSInteger)code
Parameters
code |
error code |
---|
Declared In
TCGBError.h
+ resultWithCode:message:
Creates TCGBError instance.
+ (TCGBError *)resultWithCode:(NSInteger)code message:(NSString *)message
Parameters
code |
error code. |
---|---|
message |
error message. |
Declared In
TCGBError.h
+ resultWithDomain:code:userInfo:
Creates TCGBError instance.
+ (TCGBError *)resultWithDomain:(NSString *)domain code:(NSInteger)code userInfo:(NSDictionary *)userInfo
Parameters
domain |
error domain. |
---|---|
code |
error code. |
userInfo |
a dictionary with userInfo. |
Declared In
TCGBError.h
+ resultWithDomain:code:description:underlyingError:
Create TCGBError instance. If the description value is nil or empty string, it will be set a value to default error message.
+ (TCGBError *)resultWithDomain:(NSString *)domain code:(NSInteger)code description:(NSString *)description underlyingError:(NSError *)underlyingError
Parameters
domain |
domain error domain. |
---|---|
code |
error code. |
description |
description about error. If it’s value is set to nil or empty. |
underlyingError |
error object what a cause of error. |
Declared In
TCGBError.h