Skip to content

Glossary: Swift Basics

catch

Also written: do and catch, do-catch

The block after `do` that handles an error thrown inside it. A plain `catch` receives the error as a constant named `error`.

Where the book teaches it

Related terms

throwstryerror