In Kotlin multiplatform (Android/iOS), whenever I'm querying via SQLDelight, what are the possible exceptions that I should be handling?
a
Alex Nabrozidis
02/04/2025, 12:05 AM
I don't think I do any error handling for sqldelight. If I'd get a crash from sqldelight it'd probably be a logic error like for example calling
executeAsOne
when 0 or more than 1 matching rows exist etc.
c
Chuck Stein
02/04/2025, 1:46 AM
Can't there always be errors any time you're interacting with a database or doing file I/O? E.g. what happens when you're trying to insert some data and there's not enough storage space on the device?