File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -89,24 +89,6 @@ default_features = false
89
89
features = ["dbx_files", "dbx_users"]
90
90
```
91
91
92
- ## Result Types and Errors
93
-
94
- Routes return a nested result type: ` Result<Result<T, E>, dropbox_sdk::Error> ` .
95
- The outer ` Result ` is ` Err ` if something went wrong in the course of actually
96
- making the request, such as network I/O errors or failure to serialize or
97
- deserialize the request data. This ` Result ` 's ` Ok ` variant is another ` Result `
98
- where the ` Ok ` value is the deserialized successful result of the call, and the
99
- ` Err ` value is the strongly-typed error returned by the API. This inner error
100
- indicates some problem with the request, such as file not found, lacking
101
- permissions, etc.
102
-
103
- The rationale for splitting the errors this way is that the former category
104
- usually can't be handled in any way other than by retrying the request, whereas
105
- the latter category indicate problems with the actual request itself and
106
- probably should not be retried. Since most callers can't handle I/O errors in
107
- any sensible way, this allows them to use the ` ? ` syntax to pass it up the
108
- stack, while still handling errors returned by the server.
109
-
110
92
## Tests
111
93
112
94
The tests are auto-generated from the spec as well, but unlike the main code,
You can’t perform that action at this time.
0 commit comments