Skip to content

Glossary: Swift Basics

error

Also written: Error, errors, error type

A value describing what went wrong, of a type that conforms to the `Error` protocol (usually an enum). Unlike a crash or an optional, it says why.

Where the book teaches it

Related terms

throwscatchtry