Do-catch behavior in Xcode

Like @GreatApe already said, your code shouldn't compile because you're not handling the "catch-all" case with just a simple catch. This is a requirement as of Swift 5.7 because the compiler can't possibly know what errors your methodThatThrowUnknownError() can potentially throw because Swift simply has no Precise Error Typing.