You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository.
Also, if you are a maintainer, please add any clarification and instructions about this issue.
Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.
All the errors > 400 without message should be sent as MeilisearchCommunicationError
Know errors like index is not found, or mistakes in the request like not-allowed params should be sent as MeilisearchApiError
Any other error should be a MeilisearchError
Essentially all the error should extend from MeilisearchError, the consumers should have a way to catch all the errors.
Let us know if this is not clear, or you have better idea!
TODO:
Create a base error called MeilisearchError which will extend the standard error if it does not exist (when the language supports)
Make all the other errors extend this error.
Move all errors without message to MeilisearchCommunicationError since it is not a Meilisearch error anyway.
The text was updated successfully, but these errors were encountered:
492: Add new `MeiliSearch::Error` from which other errors inherit r=brunoocasali a=ellnix
# Pull Request
## Related issue
Fixes#467
## PR checklist
Please check if your PR fulfills the following requirements:
- [X] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [X] Have you read the contributing guidelines?
- [X] Have you made sure that the title is accurate and descriptive of the changes?
Co-authored-by: ellnix <103502144+ellnix@users.noreply.github.com>
Also, if you are a maintainer, please add any clarification and instructions about this issue.
Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.
Related to meilisearch/integration-guides#267
Ensure this SDK follows the following guidelines:
MeilisearchCommunicationError
MeilisearchApiError
MeilisearchError
Essentially all the error should extend from
MeilisearchError
, the consumers should have a way to catch all the errors.Let us know if this is not clear, or you have better idea!
TODO:
MeilisearchError
which will extend the standard error if it does not exist (when the language supports)MeilisearchCommunicationError
since it is not a Meilisearch error anyway.The text was updated successfully, but these errors were encountered: