MeiliSearch/meilisearch-http
bors[bot] 25af262e79
Merge #210
210: Error handling r=MarinPostma a=MarinPostma

This pr implements the error handling for meilisearch.

Rather than grouping errors by types, this implementation groups them by scope, each scope enclosing errors from a scope further down, or new errors within this scope. This makes the tracking of the origins of errors easier , and error handling easier at the module level.

All errors that are eventually returned to the user implement the `Into<ResponseError>` trait. `ReponseError` in turn implements the `ErrorCode` trait from `meilisearch-error`.

Some new errors have been introduced with the new engine for which we haven't defined error codes yet. It has been decided with @gmourier that those would return the `internal-error` code until the correct error code is specified.


Co-authored-by: marin postma <postma.marin@protonmail.com>
2021-06-22 13:21:33 +00:00
..
src Merge #210 2021-06-22 13:21:33 +00:00
tests fix test 2021-06-22 11:10:57 +02:00
build.rs clippy, fmt & tests 2021-05-31 16:03:39 +02:00
Cargo.toml bump milli 2021-06-21 12:11:09 +02:00