Skip to content

Glossary: Kotlin Basics

IllegalArgumentException / IllegalStateException

Also written: IllegalArgumentException, IllegalStateException

Exceptions raised by your own checks: `require` raises IllegalArgumentException for a bad value, and `check` raises IllegalStateException for a bad program state.

Where the book teaches it

Related terms

requirecheckexception