Skip to content
RED SAG Skills
hardStudy question · answer published in iOS interview questions, so no pointsswifterror-handling

Typed throws

With Swift 6 typed throws, what is the type of error in the catch block?

func pay() throws(PaymentError) { /* ... */ }

do {
    try pay()
} catch {
    // error’s type here?
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions