官术网_书友最值得收藏!

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!.

主站蜘蛛池模板: 朝阳县| 叙永县| 武邑县| 乌审旗| 胶州市| 辉县市| 龙陵县| 陕西省| 始兴县| 兴宁市| 屯门区| 公主岭市| 靖宇县| 浑源县| 岐山县| 潮州市| 格尔木市| 沙河市| 房山区| 济源市| 东阳市| 新闻| 和田县| 米易县| 宁化县| 嘉义县| 福州市| 霍城县| 亳州市| 博乐市| 石楼县| 叶城县| 育儿| 望江县| 定结县| 塔河县| 洞口县| 洛川县| 若羌县| 长治县| 巴彦淖尔市|