- iOS Programming Cookbook
- Hossam Ghareeb
- 92字
- 2021-07-09 18:29:45
Disable error propagation
Functions that usually throw an error, in some cases, don't throw an error. In some cases, you may know that calling a function like these with some kind of parameters will never throw an error. In that case, Swift gives you an option to disable error propagation via calling this method with try! instead of try. Calling throwing functions via try! will disable error propagation, and if an error is thrown in that case, you will get a runtime error. So, it's better to take care while using try!.
推薦閱讀
- pcDuino開發(fā)實(shí)戰(zhàn)
- Mastering vRealize Operations Manager(Second Edition)
- Implementing Cisco UCS Solutions
- Learning Windows Server Containers
- 鴻蒙生態(tài):開啟萬(wàn)物互聯(lián)的智慧新時(shí)代
- 循序漸進(jìn)學(xué)Docker
- Java EE 8 Design Patterns and Best Practices
- 嵌入式Linux應(yīng)用開發(fā)菜鳥進(jìn)階
- 巧學(xué)活用Windows 7
- Linux系統(tǒng)安全基礎(chǔ):二進(jìn)制代碼安全性分析基礎(chǔ)與實(shí)踐
- Learning Bootstrap
- Joomla! 3 Template Essentials
- Kali Linux 2018:Windows Penetration Testing
- Linux命令行大全(第2版)
- NetDevOps入門與實(shí)踐