commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
NS_SWIFT_NAME(SDKError) |
|
14 |
DEPRECATED_MSG_ATTRIBUTE("`SDKError` is deprecated and will be removed in the next major release; use `ErrorFactory` and/or `NetworkErrorChecker` instead") |
|
15 |
@interface FBSDKError : NSObject |
|
16 |
|
|
17 |
+ (NSError *)errorWithCode:(NSInteger)code message:(nullable NSString *)message; |
|
18 |
|
|
19 |
+ (NSError *)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code message:(nullable NSString *)message; |
|
20 |
|
|
21 |
+ (NSError *)errorWithCode:(NSInteger)code |
|
22 |
message:(nullable NSString *)message |
|
23 |
underlyingError:(nullable NSError *)underlyingError; |
|
24 |
|
|
25 |
+ (NSError *)errorWithDomain:(NSErrorDomain)domain |
|
26 |
code:(NSInteger)code |
|
27 |
message:(nullable NSString *)message |
|
28 |
underlyingError:(nullable NSError *)underlyingError; |
|
29 |
|
|
30 |
+ (NSError *)errorWithDomain:(NSErrorDomain)domain |
|
31 |
code:(NSInteger)code |
|
32 |
userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)userInfo |
|
33 |
message:(nullable NSString *)message |
|
34 |
underlyingError:(nullable NSError *)underlyingError; |
|
35 |
|
|
36 |
+ (NSError *)invalidArgumentErrorWithName:(NSString *)name |
|
37 |
value:(nullable id)value |
|
38 |
message:(nullable NSString *)message; |
|
39 |
|
|
40 |
+ (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain |
|
41 |
name:(NSString *)name |
|
42 |
value:(nullable id)value |
|
43 |
message:(nullable NSString *)message; |
|
44 |
|
|
45 |
+ (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain |
|
46 |
name:(NSString *)name |
|
47 |
value:(nullable id)value |
|
48 |
message:(nullable NSString *)message |
|
49 |
underlyingError:(nullable NSError *)underlyingError; |
|
50 |
|
|
51 |
+ (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain |
|
52 |
name:(NSString *)name |
|
53 |
message:(nullable NSString *)message; |
|
54 |
|
|
55 |
+ (NSError *)unknownErrorWithMessage:(NSString *)message; |
|
56 |
|
|
57 |
+ (BOOL)isNetworkError:(NSError *)error; |
|
58 |
|
|
59 |
@end |
|
60 |
|
|
61 |
NS_ASSUME_NONNULL_END |