TCGBError Class Reference

Inherits from NSError
Declared in TCGBError.h

Overview

TCGBError class represents a result of some APIs or an occured error.

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

Properties

– message

Error message

- (NSString *)message

Declared In

TCGBError.h

– prettyJsonString

Pretty JSON string

- (NSString *)prettyJsonString

Declared In

TCGBError.h

– jsonString

JSON string

- (NSString *)jsonString

Declared In

TCGBError.h