Skip to content

Glossary: Swift Basics

try

Also written: try?, try!

Marks a call that can throw. `try?` turns an error into `nil`, and `try!` crashes if it throws (avoid it).

Where the book teaches it

Related terms

throwscatchoptional