Skip to content

Checked vs unchecked exceptions #602

@cptartur

Description

@cptartur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions