سؤال

I have searched a lot on the internet on catching an sqlite exception.But all I could come across was this general exception

@catch (NSException *exception) {

        }

What type of exception can I use for sqlite exception handling?

هل كانت مفيدة؟

المحلول

Generally, SQLite does not return exceptions for recoverable errors. Rather, it returns an error code which you must check after each operation.

Some "wrapper" APIs for SQLite may return exceptions, but that would be a function of the particular API.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top