commit | author | age
|
dcdc07
|
1 |
// |
W |
2 |
// WAShareConstants.h |
|
3 |
// WAUI |
|
4 |
// |
|
5 |
// Created by wuyx on 15/6/12. |
|
6 |
// Copyright (c) 2015年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
typedef enum WAErrorCode |
|
12 |
{ |
|
13 |
/*! |
|
14 |
@abstract Reserved. |
|
15 |
*/ |
|
16 |
WAReservedErrorCode = 0, |
|
17 |
|
|
18 |
/*! |
|
19 |
@abstract The error code for errors from invalid encryption on incoming encryption URLs. |
|
20 |
*/ |
|
21 |
WAEncryptionErrorCode, |
|
22 |
|
|
23 |
/*! |
|
24 |
@abstract The error code for errors from invalid arguments to SDK methods. |
|
25 |
*/ |
|
26 |
WAInvalidArgumentErrorCode, |
|
27 |
|
|
28 |
/*! |
|
29 |
@abstract The error code for unknown errors. |
|
30 |
*/ |
|
31 |
WAUnknownErrorCode, |
|
32 |
|
|
33 |
/*! |
|
34 |
@abstract A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve |
|
35 |
the error object from the NSURLConnection for more information. |
|
36 |
*/ |
|
37 |
WANetworkErrorCode, |
|
38 |
|
|
39 |
/*! |
|
40 |
@abstract The error code for errors encounted during an App Events flush. |
|
41 |
*/ |
|
42 |
WAAppEventsFlushErrorCode, |
|
43 |
|
|
44 |
/*! |
|
45 |
@abstract An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. |
|
46 |
@discussion Endpoints that return image/jpg, etc. should be accessed using NSURLRequest |
|
47 |
*/ |
|
48 |
WAGraphRequestNonTextMimeTypeReturnedErrorCode, |
|
49 |
|
|
50 |
/*! |
|
51 |
@abstract The operation failed because the server returned an unexpected response. |
|
52 |
@discussion You can get this error if you are not using the most recent SDK, or you are accessing a version of the |
|
53 |
Graph API incompatible with the current SDK. |
|
54 |
*/ |
|
55 |
WAGraphRequestProtocolMismatchErrorCode, |
|
56 |
|
|
57 |
/*! |
|
58 |
@abstract The Graph API returned an error. |
|
59 |
@discussion See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) |
|
60 |
*/ |
|
61 |
WAGraphRequestGraphAPIErrorCode, |
|
62 |
|
|
63 |
/*! |
|
64 |
@abstract The specified dialog configuration is not available. |
|
65 |
@discussion This error may signify that the configuration for the dialogs has not yet been downloaded from the server |
|
66 |
or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. |
|
67 |
*/ |
|
68 |
WADialogUnavailableErrorCode, |
|
69 |
}WAErrorCode; |
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
extern NSString *const WAErrorDomain; |
|
74 |
|
|
75 |
extern NSString *const WAErrorArgumentCollectionKey; |
|
76 |
|
|
77 |
/*! |
|
78 |
@abstract The userInfo key for the invalid argument name for errors with FBSDKInvalidArgumentErrorCode. |
|
79 |
*/ |
|
80 |
extern NSString *const WAErrorArgumentNameKey; |
|
81 |
|
|
82 |
/*! |
|
83 |
@abstract The userInfo key for the invalid argument value for errors with FBSDKInvalidArgumentErrorCode. |
|
84 |
*/ |
|
85 |
extern NSString *const WAErrorArgumentValueKey; |
|
86 |
|
|
87 |
/*! |
|
88 |
@abstract The userInfo key for the message for developers in NSErrors that originate from the SDK. |
|
89 |
@discussion The developer message will not be localized and is not intended to be presented within the app. |
|
90 |
*/ |
|
91 |
extern NSString *const WAErrorDeveloperMessageKey; |
|
92 |
|
|
93 |
/*! |
|
94 |
@abstract The userInfo key describing a localized description that can be presented to the user. |
|
95 |
*/ |
|
96 |
extern NSString *const WAErrorLocalizedDescriptionKey; |
|
97 |
|
|
98 |
/*! |
|
99 |
@abstract The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. |
|
100 |
*/ |
|
101 |
extern NSString *const WAErrorLocalizedTitleKey; |
|
102 |
|