Skip to content

Glossary: Dart Basics

catch

Also written: on, finally

Parts of a try statement that handle an exception. `on Type catch (e)` handles one kind, plain `catch (e)` handles anything, and `finally` always runs.

Where the book teaches it

Related terms

exceptionthrowtry