OPAL-Framework: Get thrown exceptions of a method

68 Views Asked by At

In the OPAL-Framework, is how can I get all thrown exceptions from a method or its descriptor? I could not find any method returning them.

I am only interested in those exceptions, which are listed in the throws-declaration of the method.

1

There are 1 best solutions below

0
On BEST ANSWER

The Method object provides the method exceptionTable which return an Option of the type ExceptionTable. If the table is not empty, it contains the list of declared exceptions.