Re: Can't pass exceptions with Java 7 : java.lang.Throwable.suppressedExceptions

Kevin Reid <kpreid-M/[email protected]> Tue, 15 May 2012 06:03:31 -0400
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
On May 15, 2012, at 4:33, Thomas Leonard wrote:

> Losing the exception type seems OK to me, since it fits in with the general E idea of exceptions not having interesting types. And in fact, I usually turn all exceptions into RuntimeException if they might go over CapTP, since the receiver often doesn't have the exception type in its classpath.

Just a clarification: there is certainly not a general E idea of *throwing out exception type information*, or rather, insofar as there is, it is because our exception handling is severely immature. There has not been enough (design response to) E application code which actually needs to recover from specific errors.

The prototype and plans I referred to are about making exception types a matter of data rather than distinct classes, not about throwing out exception types entirely.

-- 
Kevin Reid                                  <http://switchb.org/kpreid/>