123456789101112131415161718192021 |
- //
- // ZYLNetworkError.m
- // Starbuds
- //
- // Created by 翟玉磊 on 2019/12/23.
- // Copyright © 2019 翟玉磊. All rights reserved.
- //
- #import "ZYLNetworkError.h"
- @implementation ZYLNetworkError
- + (instancetype)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code codeStr:(NSString *)codeStr userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict {
- domain = kLocalizedString(domain);
- ZYLNetworkError *error = [super errorWithDomain:domain code:code userInfo:dict];
- if (error) {
- error.codeStr = codeStr;
- }
- return error;
- }
- @end
|