WWDC 2015 㧠Swift 2.0 ãçºè¡¨ããã¾ããããªã¼ãã³ã½ã¼ã¹åãªã©ã®ãããããã¥ã¼ã¹ã§ãçãä¸ãã£ã¦ãã¾ãããè¨èªä»æ§ã¨ãã¦ã¯ try, throw, catch ãå°å ¥ãããã¨ãã大ããªå¤æ´ãããã¾ãããæ¬æ稿ã¯ã The Swift Programming Language ã®æ°ç« Error Handling ãèªã¿ãå¤å°ã®ã³ã¼ããæ¸ããä¸ã§ã®å人çãªææ³ã§ãã çµè«ããè¨ãã¨ã try, catch ã®å°å ¥ã¯è¯ãå¤æ´ã ã¨æããªããã©ã try, catch ãå°å ¥ããåæãªãèãå¾ãéããã¹ãã«è¿ãä»æ§ã ã£ããã£ã¦æãã§ãã ããã£ãã®ã¯ã ErrorType 㯠enum ã¿ã¤ãã»ã¼ããªã¨ã©ã¼æ å ± ã¨ã©ã¼å¦çãå¼·å¶ããã¦ããï¼æ¤æ»ä¾å¤ã®ãããªå½¢ï¼ try! ã§ã¨ã©ã¼ãç¡è¦ã§ãã ãããã§ããå人çã«ã¯ã try, catch ã§ãªã Either çãªãã®ãå ¬å¼ãµ
{{#tags}}- {{label}}
{{/tags}}