3 ms·
Yes there is. I have enough material enough on this for several blog posts, but I won't belabor the point. One, why do you think almost all non-standard java l
by Quekid5 7y ago
Yes there is. I have enough material enough on this for several blog posts, but I won't belabor the point.
One, why do you think almost all non-standard java libraries almost exclusively use exceptions derived from RuntimeException?
Two, I encourage you to look up guava's Throwables utility class and consider why it is even a thing. Just for a single example: Methods with no throws clause cannot throw exceptions, so you must wrap in a RuntimeException... but that means that outer catch clauses which match on the checked exception WILL NOT MATCH on the RTExc-wrapped-exception. This is broken as all hell.