Skip to content

Glossary: Swift Basics

throws

Also written: throw, throwing function

A function marked `throws` can report an error with `throw`, and every call to it needs `try`.

Where the book teaches it

Related terms

trycatcherror