//
//  HMAdsError.h
//  TestFrameWork


#import <Foundation/Foundation.h>

enum {
    //配置信息有误
    HMAdsRequestConfigInfoError = 5001,
    //数据超时
    HMAdsRequestTimeOut = 5002,
    //请求失败
    HMAdsRequestFailed = 5003,
    //参数有误
    HMAdsRequestParamsError = 5004,
    //平台无广告填充
    HMAdsRequestNotAd = 5005,
    //渲染失败
    HMAdsRequestRenderFail = 5006,
};


@interface HMAdsError : NSError

+ (HMAdsError *)errorWithCode:(NSInteger)code userInfo:(NSDictionary *)dict;
+ (HMAdsError *)errorWithCode:(NSInteger)code description:(NSString *)desc;
+ (HMAdsError *)errorWithCode:(NSInteger)code description:(NSString *)desc underlyingError:(NSError *)uError;

- (id)initWithCode:(NSInteger)code userInfo:(NSDictionary *)dict;
- (id)initWithCode:(NSInteger)code description:(NSString *)desc;
- (id)initWithCode:(NSInteger)code description:(NSString *)desc underlyingError:(NSError *)uError;

@end
