Exceptions & Error Handling in Kotlin

try/catch/finally, custom exceptions, why Kotlin has no checked exceptions, and the idiomatic alternatives (nullable return values, the Result type) — for everyone who already knows the basics from "Kotlin Introduction" and "Object-Oriented Programming in Kotlin" and now wants to learn how to model errors cleanly in Kotlin instead of just catching them.

0 / 7 completed

Module 1 · Understanding & Handling Exceptions
011. What Is an Exception?LESSON
—2. try, catch and finallyLOCKED
—3. Defining Custom ExceptionsLOCKED
Module 2 · Error Handling That Fits Kotlin
—4. Why Kotlin Has No Checked ExceptionsLOCKED
—5. Null Instead of ExceptionLOCKED
—6. The Result Type: Errors as ValuesLOCKED
Module 3 · Practical Project
—7. Practical Project: Order ValidationLOCKED
7 lessonsModule 1 · Understanding & Handling ExceptionsModule 2 · Error Handling That Fits KotlinModule 3 · Practical ProjectProgress: local, no account required