Please look at the following code:
override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRow
Not possible, because the closure can be invoked at any time, probably not at execution time of your function, so where should the error propagate to?
You have to call out to another function which can handle the error:
func handleError(error: ErrorType) {
switch error {
...
}
}
and then call this function with your caught error inside the closure