티스토리 뷰

공부

[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

'공부' 카테고리의 다른 글

[Spring] ObjectMapper.readValue(json, object : TypeReference<String>() {})  (0) 2022.06.06
[Spring] @ConfigurationProperties  (0) 2022.06.06
[Spring] Eureka Discovery  (0) 2022.06.06
[Spring] initializr  (0) 2022.06.06
[Spring] @ComponentScan  (0) 2022.06.06
댓글