-
Notifications
You must be signed in to change notification settings - Fork 342
clarify error management #87
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
When you try to read multiple data and the request does not return any result (ex: RangeScan, PrefixScan) an error is returned
Describe the solution you'd like
Instead of returning an error I expected an empty result, this is much easier to manage instead of having to check errors which are not real errors or worse having to check the error message returned.
When Get does not match anything I can get this: "not match bucket ," or a ErrKeyNotFound, in this case both should return ErrKeyNotFound
- for single returned value when an item is not found
ErrKeyNotFoundis perfect but should be always returned - for multiple values (
RangeScan,PrefixScan) an empty array should be returned, in those cases having no data returned is not an error, the user should decide.
Describe alternatives you've considered
null
Additional context
null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request