Indeed. It would be cool to get opposites for the exceptionClass
properties. So, we would have FAMIXClass>>thrownAsException,
FAMIXClass>>declaredAsException, FAMIXClass>>caughtAsException. This
would also imply that we would define the implementation of
exceptionClass in all subclasses of Exception.
Cheers,
Doru
On Tue, Aug 21, 2012 at 1:34 PM, Nicolas Anquetil
<Nicolas.Anquetil(a)inria.fr> wrote:
It seems there is no way to identify classes (java)
that are Exceptions.
Even the one that are used.
There are ThrownException / DeclaredException / CaughtException , all
pointing to the exceptionClass, but there is no opposite property in the
exception class that one could use to test whether a given class is used as
an exception.
So the only way is to test whether Exception is an ancestor of a given class
?
nicolas
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"