공부
[Kotlin] Exception
승가비
2022. 6. 6. 04:00
728x90
class TestException(message:String): Exception(message)
https://stackoverflow.com/questions/45162869/kotlin-throw-custom-exception
Kotlin - Throw Custom Exception
How can I throw a custom exception in Kotlin? I didn't really get that much off the docs... In the docs, it gets described what each exception needs, but how exactly do I implement it?
stackoverflow.com
728x90