Avatar
omochimetaru 7/11/2017 2:37 AM
func nonThrowingFunction() { guard let value = try throwingFunction() catch { // handle `error` here, then leave scope print(error) // for example return } // use `value` here }