Skip to content

Glossary: Kotlin Basics

try / catch

Also written: try, catch

`try` holds risky code and `catch` holds the fallback that runs if an exception happens. Like `if`, `try` can give a value.

Where the book teaches it

Related terms

exception