Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在互联网上搜索了很多关于捕获 sqlite 异常的信息。但我能遇到的只是这个一般异常
@catch (NSException *exception) { }
我可以使用什么类型的异常来处理 sqlite 异常?
通常,SQLite 不会返回可恢复错误的异常。相反,它会返回一个错误代码,您必须在每次操作后检查该代码。
SQLite 的一些“包装”API 可能会返回异常,但这将是特定 API 的功能。