- iOS Programming Cookbook
- Hossam Ghareeb
- 152字
- 2021-07-09 18:29:44
Using error handling
In any iOS project, a lot of operations may fail and you have to respond to these errors in your project. Since Swift 2, a new mechanism has been added to the language for responding and dealing with errors in your project. You can now throw and catch errors when you do any operation that may fail for some reason. Suppose, you do some logic to request some data in a JSON format from a remote server and then you save this data in a local database. Can you imagine how many errors may happen for these operations? Connection may fail between your app and the remote server, failing to parse the JSON response, database connection is closed, database file doesn't exist, or another process is writing in database and you have to wait. Recovering from these errors allows you take the appropriate action based on the error type.
- UNIX操作系統設計
- Windows Phone應用程序開發
- 異質結原理與器件
- 網絡操作系統管理與應用(第三版)
- 移動應用UI設計模式(第2版)
- Linux使用和管理指南:從云原生到可觀測性
- Mobile First Design with HTML5 and CSS3
- Linux內核設計的藝術:圖解Linux操作系統架構設計與實現原理
- jQuery UI Cookbook
- Python UNIX和Linux系統管理指南
- Windows 7實戰從入門到精通
- Windows 10從新手到高手
- Linux軟件管理平臺設計與實現
- Mastering Windows 8 C++ App Development
- 統信UOS應用開發進階教程