file = try loadFile(at: path) // execute using `file` } catch FileError.noSuchFile { // Error handling when there is no file } catch FileError.permissionDenied { // Error handling when there is no permission } catch { // Error handling in other cases }
http://qiita.com/yuya_presto/items/3b651d6b0cf38f77e933 • ྫ֎ઃܭͷ https://gist.github.com/sunaot/6138546 • ͳͥGoݴޠ(golang)Α͍ݴޠͳͷ͔ɾGoͰϓϩάϥϜΛॻ͖͘ͳͷ͔ http:// www.yunabe.jp/docs/why_golang_is_good.html • Three Stories about Error Handling in Swift http://koherent.org/tryswift/codes.html