You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by John Hawkins <HA...@uk.ibm.com> on 2004/07/23 10:49:52 UTC
Exception declarations
Hi Folks,
Just looking into what methods throw what exceptions and found that we have
very few declarations of throw. I see some in the tests and some in the
Axis Exceptions themselves but none in the actual core API.
This doesn't sound like a very good idea to me. If someone is coding to the
API they would probably like to know what exceptions to expect ?
Are there no declerations because they all can throw an exception? Are the
only exceptions any method can throw AxisException anyway?
John Hawkins
Re: Exception declarations
Posted by damitha kumarage <da...@opensource.lk>.
On Fri, 2004-07-23 at 14:49, John Hawkins wrote:
>
> Hi Folks,
>
> Just looking into what methods throw what exceptions and found that we have
> very few declarations of throw. I see some in the tests and some in the
> Axis Exceptions themselves but none in the actual core API.
>
> This doesn't sound like a very good idea to me. If someone is coding to the
> API they would probably like to know what exceptions to expect ?
Yes this has to be done. This is all because we did not originally have
exceptions in the code. The method writer should decide what exceptions
it could possibly throw. If later someone go and decide what exceptions
it could possibly throw and imagine he has to do this on whole code.
>
> Are there no declerations because they all can throw an exception? Are the
> only exceptions any method can throw AxisException anyway?
>
>
>
> John Hawkins
>
>
>