https://kotlinlang.org logo
Title
c

cedric

05/04/2017, 6:50 PM
Anyone who’s dealt with Spring logging hundreds of lines of runtime exceptions can see what happens when you go full runtime
r

Ruckus

05/04/2017, 7:07 PM
cedric: I'm curious on your perspective of how exceptions in Java are structured (hierarchically). I heard an argument once that having runtime exceptions extend from checked exceptions was the source of a lot of people's issues with exceptions in Java, and would have been better if runtime exceptions had their own hierarchy (extending directly from
Throwable
).
c

cedric

05/04/2017, 8:07 PM
@boom I don’t have a problem with the hierarchy, the key advantage of exceptions is in 1) compiler verified error handling and 2) automatic bubbling
r

Ruckus

05/04/2017, 8:09 PM
I agree with you on exceptions vs some sort of result type. I was just curious if you had any thoughts about Java's exception hierarchy specifically.
c

cedric

05/04/2017, 8:12 PM
I’ve never had an issue with exceptions that was caused by their hierarchy
r

Ruckus

05/04/2017, 8:26 PM
Fair enough. Thanks