|
16 | 16 | // |
17 | 17 | //////////////////////////////////////////////////////////////////////////// |
18 | 18 |
|
| 19 | +using System; |
| 20 | + |
19 | 21 | namespace Realms.Sync.Exceptions |
20 | 22 | { |
21 | 23 | /// <summary> |
@@ -97,13 +99,19 @@ public enum ErrorCode |
97 | 99 | /// <summary> |
98 | 100 | /// The session has been disabled. |
99 | 101 | /// </summary> |
| 102 | + [Obsolete("This error can no longer happen")] |
100 | 103 | DisabledSession = 213, |
101 | 104 |
|
102 | 105 | /// <summary> |
103 | 106 | /// The client file is invalid. |
104 | 107 | /// </summary> |
105 | 108 | BadClientFile = 217, |
106 | 109 |
|
| 110 | + /// <summary> |
| 111 | + /// Client file has expired likely due to history compaction on the server. |
| 112 | + /// </summary> |
| 113 | + ClientFileExpired = 222, |
| 114 | + |
107 | 115 | /// <summary> |
108 | 116 | /// The user for this session doesn't match the user who originally created the file. This can happen |
109 | 117 | /// if you explicitly specify the Realm file path in the configuration and you open the Realm first with |
@@ -159,56 +167,67 @@ public enum ErrorCode |
159 | 167 | /// <summary> |
160 | 168 | /// Your request parameters did not validate. |
161 | 169 | /// </summary> |
| 170 | + [Obsolete("This error can no longer happen")] |
162 | 171 | InvalidParameters = 601, |
163 | 172 |
|
164 | 173 | /// <summary> |
165 | 174 | /// Your request did not validate because of missing parameters. |
166 | 175 | /// </summary> |
| 176 | + [Obsolete("This error can no longer happen")] |
167 | 177 | MissingParameters = 602, |
168 | 178 |
|
169 | 179 | /// <summary> |
170 | 180 | /// The provided credentials are invalid. |
171 | 181 | /// </summary> |
| 182 | + [Obsolete("This error can no longer happen")] |
172 | 183 | InvalidCredentials = 611, |
173 | 184 |
|
174 | 185 | /// <summary> |
175 | 186 | /// The account does not exist. |
176 | 187 | /// </summary> |
| 188 | + [Obsolete("This error can no longer happen")] |
177 | 189 | UnknownAccount = 612, |
178 | 190 |
|
179 | 191 | /// <summary> |
180 | 192 | /// The account cannot be registered as it exists already. |
181 | 193 | /// </summary> |
| 194 | + [Obsolete("This error can no longer happen")] |
182 | 195 | ExistingAccount = 613, |
183 | 196 |
|
184 | 197 | /// <summary> |
185 | 198 | /// The path is invalid or current user has no access. |
186 | 199 | /// </summary> |
| 200 | + [Obsolete("This error can no longer happen")] |
187 | 201 | AccessDenied = 614, |
188 | 202 |
|
189 | 203 | /// <summary> |
190 | 204 | /// The refresh token is expired. |
191 | 205 | /// </summary> |
| 206 | + [Obsolete("This error can no longer happen")] |
192 | 207 | ExpiredRefreshToken = 615, |
193 | 208 |
|
194 | 209 | /// <summary> |
195 | 210 | /// The server is not authoritative for this URL. |
196 | 211 | /// </summary> |
| 212 | + [Obsolete("This error can no longer happen")] |
197 | 213 | InvalidHost = 616, |
198 | 214 |
|
199 | 215 | /// <summary> |
200 | 216 | /// The permission offer is expired. |
201 | 217 | /// </summary> |
| 218 | + [Obsolete("This error can no longer happen")] |
202 | 219 | ExpiredPermissionOffer = 701, |
203 | 220 |
|
204 | 221 | /// <summary> |
205 | 222 | /// The token used on the permission request does match more than a single permission offer. |
206 | 223 | /// </summary> |
| 224 | + [Obsolete("This error can no longer happen")] |
207 | 225 | AmbiguousPermissionOfferToken = 702, |
208 | 226 |
|
209 | 227 | /// <summary> |
210 | 228 | /// The Realm file at the specified path is not available for shared access. |
211 | 229 | /// </summary> |
| 230 | + [Obsolete("This error can no longer happen")] |
212 | 231 | FileMayNotBeShared = 703, |
213 | 232 | } |
214 | 233 | } |
0 commit comments