GregoryConrad / mimir

⚡ Supercharged Flutter/Dart Database
https://pub.dev/packages/mimir
MIT License
120 stars 8 forks source link

Do getAllDocuments and/or deleteDocument throw exceptions when they fail? #216

Closed TDuffinNTU closed 1 year ago

TDuffinNTU commented 1 year ago

This isn't mentioned in the documents, but it might be good to know so I can make sure to handle exceptions before they come up randomly :)

GregoryConrad commented 1 year ago

All async methods exposed in the API are fallible (although it is unlikely they ever will, unless it’s something like “you need to specify a valid primary key” when it can’t be assumed).

I’ll leave this open until I can add a blurb to the documentation about it later 👌