This repository was archived by the owner on Sep 12, 2018. It is now read-only.
Commit 5fe4f12
committed
Use concrete Mentat error types rather than
In the language of
https://github.com/withoutboats/failure/blob/868273409c826755812dbff1b67cc0ac3fa702f7/book/src/error-errorkind.md
Mentat is a mid-level API, not an application, and therefore we should
prefer our own error types. Writing an initial consumer of Mentat (a
Rust logins API targeting Mozilla Lockbox), I have found this to be
true: my consumer wants to consume concrete Mentat error types.
This doesn't go "all the way" and convert all sub-crates to the
Error/ErrorKind, but it does go part of the way.failure::Error. (#769) r=grisha35 files changed
Lines changed: 447 additions & 405 deletions
File tree
- core/src
- db/src
- query-algebrizer
- src
- clauses
- tests
- utils
- query-projector
- src
- tests
- query-pull/src
- query-translator/src
- src
- tests
- tools/cli/src/mentat_cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
895 | 900 | | |
896 | 901 | | |
897 | 902 | | |
898 | | - | |
| 903 | + | |
899 | 904 | | |
900 | 905 | | |
901 | 906 | | |
| |||
1154 | 1159 | | |
1155 | 1160 | | |
1156 | 1161 | | |
1157 | | - | |
| 1162 | + | |
1158 | 1163 | | |
1159 | 1164 | | |
1160 | 1165 | | |
| |||
1236 | 1241 | | |
1237 | 1242 | | |
1238 | 1243 | | |
1239 | | - | |
| 1244 | + | |
1240 | 1245 | | |
1241 | 1246 | | |
1242 | 1247 | | |
| |||
1247 | 1252 | | |
1248 | 1253 | | |
1249 | 1254 | | |
1250 | | - | |
| 1255 | + | |
1251 | 1256 | | |
1252 | 1257 | | |
1253 | 1258 | | |
| |||
1276 | 1281 | | |
1277 | 1282 | | |
1278 | 1283 | | |
1279 | | - | |
| 1284 | + | |
1280 | 1285 | | |
1281 | 1286 | | |
1282 | 1287 | | |
| |||
1354 | 1359 | | |
1355 | 1360 | | |
1356 | 1361 | | |
1357 | | - | |
| 1362 | + | |
1358 | 1363 | | |
1359 | 1364 | | |
1360 | 1365 | | |
| |||
1370 | 1375 | | |
1371 | 1376 | | |
1372 | 1377 | | |
1373 | | - | |
| 1378 | + | |
1374 | 1379 | | |
1375 | 1380 | | |
1376 | 1381 | | |
| |||
1386 | 1391 | | |
1387 | 1392 | | |
1388 | 1393 | | |
1389 | | - | |
| 1394 | + | |
1390 | 1395 | | |
1391 | 1396 | | |
1392 | 1397 | | |
| |||
1424 | 1429 | | |
1425 | 1430 | | |
1426 | 1431 | | |
1427 | | - | |
| 1432 | + | |
1428 | 1433 | | |
1429 | 1434 | | |
1430 | 1435 | | |
| |||
0 commit comments