-
|
As a newcomer to SQLiteData, I saw withErrorReporting used all over the examples, I'm wondering if this is only for debugging or if there's a way to use it while still catching errors i.e. to signal in the UI that some database operation went wrong? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @tchardin, the majority of errors thrown by a database query are programmer error, not user error. For example, executing a malformed query. Those kinds of errors aren't helpful to show to the user because there's nothing they can do to fix it. But, if there are user facing errors that could be emitted from a query, such as a validation error, then you would not use |
Beta Was this translation helpful? Give feedback.
Hi @tchardin, the majority of errors thrown by a database query are programmer error, not user error. For example, executing a malformed query. Those kinds of errors aren't helpful to show to the user because there's nothing they can do to fix it.
But, if there are user facing errors that could be emitted from a query, such as a validation error, then you would not use
withErrorReportingand instead catch the error and surface it to the user in some way. We just don't have any examples of that in our demos.