Throw a specific Exception instead of Exception
in handlers
#389
Labels
enhancement
New feature or request
Exception
in handlers
#389
Uh oh!
There was an error while loading. Please reload this page.
Following this discussion, it could be better to throw specifics Exceptions for all the handlers:
I mean, is good to only
throw
errors that we can control,Exception
is Ok, but in the end is easier for the consumer just to expect a MeiliSearchApiException instead of theException
because they will have more control over the exception catch flow like this:Now if we just throw an Exception:
Originally posted by @brunoocasali in #371 (comment)
The text was updated successfully, but these errors were encountered: