Skip to content

Glossary: Kotlin Basics

check

Also written: check()

Like `require`, but raises an IllegalStateException when the condition is false. Use it to check your program's own state.

Where the book teaches it

Related terms

requireexception