With the acceptance of SE192 Non Exhaustive Enums, what happens with Error
enums? EG:
public enum SomeAppleError: Error {
case anError
}
...
do {
result = try someFuncThatThrows()
} catch SomeAppleError.anError {
return result
} catch {
defaultAction(error)
}
Is the plan to allow?
do {
result = try someFuncThatThrows()
} catch SomeAppleError.anError {
return result
} catch {
defaultAction(error)
} unknown catch {
unkownAction(error)
}
IE is the plan to allow the catching of unknown errors like other unknown enums from Apple frameworks?