The exception needs to be explictly called out by the method (e.g. public
void myMethod *throws ExceptionXYZ {...}) otherwise the exception will not
end up in the table. Even if you have a throw statement in your code or a
try catch block, they will not appear unless the previous condition was met.
Hope that helps.
Cheers...
----- Original Message -----
From: "Laurent Martelli" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 08, 2002 8:54 PM
Subject: Exception table
> Hi there,
>
> I can't seem to get any exception table from a
org.apache.bcel.classfile.Method
>
> getExceptionTable() always returns null, even when there is a
> try-catch block in the method. Am I missing something ?
>
> --
> Laurent Martelli http://jac.aopsys.com/
> [EMAIL PROTECTED] http://www.bearteam.org/~laurent/
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>