> From: "Mike Cowlishaw" <[hidden email]>
> If you want to write buggy code, perhaps. Consider: the method
> you call is declared as raising IOException (that's in the
> signals list). You find out (perhaps by reading the code) that
> in fact it raises FileNotFoundException, so that's what you
> catch. All is well and good until ...
If the method raises FileNotFoundException but declares
IOException in its signal list, then catching
FileNotFoundException does not removes the IOException.
That is, considering the following:
method dummy signals IOException
... -- something here signaling FileNotFoundException
method aTest(aFoo = foo) signals IOException
The method aTest _should_ declare IOException in its signal list,
as it is not catched in its body. Hence the above is safe (in
the sense you don't get unexpected behavior).
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email] with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>