Avatar
omochimetaru 1/16/2018 8:10 AM
extension String : Error {} func a() throws { throw "error message" } do { try a() } catch let e { print(e) // "error message\n" }