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_SWIFT_NAME(NetworkErrorChecking) |
|
12 |
@protocol FBSDKNetworkErrorChecking |
|
13 |
|
|
14 |
/** |
|
15 |
Checks whether an error is a network error. |
|
16 |
|
|
17 |
@param error An error that may or may not represent a network error. |
|
18 |
|
|
19 |
@return `YES` if the error represents a network error, otherwise `NO`. |
|
20 |
*/ |
|
21 |
- (BOOL)isNetworkError:(NSError *)error; |
|
22 |
|
|
23 |
@end |