For most our own custom exceptions we use RuntimeException which is unchecked exception in java. There might be cases where we want to throw something that is checked, so java users are explicitly required to handle it.
All exceptions in Kotlin are unchecked by design but it is possible to make them checked for languages like java, see docs https://kotlinlang.org/docs/exceptions.html#exception-interoperability-with-java-swift-and-objective-c
For most our own custom exceptions we use
RuntimeExceptionwhich is unchecked exception in java. There might be cases where we want to throw something that is checked, so java users are explicitly required to handle it.All exceptions in Kotlin are unchecked by design but it is possible to make them checked for languages like java, see docs https://kotlinlang.org/docs/exceptions.html#exception-interoperability-with-java-swift-and-objective-c