> :) Which means that you cannot have your own faults. You can however
> build one if you manipulate the detail field in an AxisFault.
not quite easy, many fields are private fields.
Why now add a function in the AxisFault to add some elements ?
>Something like that. But in the current implementation you can basically
>throw away your generated exception classes and use AxisFault instead.
Yes, but by having you own exception class, you may distinct buisness
exception ( exception launch by your own code ) and technical exception (
launch for other reason ).
That is not perfect, but works for me ...
I am sure that better solution can be found, but how to keep the
interoperability with the other lg ? what the spec says about fault message
?
For me the best, would be
- allow the exception to pass with the stacktrace, the message.
- serialize the linked exception if one has been provided .. and the
all the exception chain ( with all the stacktrace )!
- allow parameters in constructor ( at least String and Throwable )
This is not easy because, we have to access private field of the class
Exception ( which is mostly implemeted in native code )
.. But I do thing that is possible, with a custom security provider, and
with the introspection.
Dominique
|---------+--------------------------->
| | <Geza.Szocs@noki|
| | a.com> |
| | |
| | 10/09/02 02:25 |
| | PM |
| | Please respond |
| | to axis-user |
| | |
|---------+--------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc: (bcc: Dominique Gallot/BRU/MASTERCARD)
|
| Subject: RE: custom exception not thrown anymore
|
>-------------------------------------------------------------------------------------------------------------------------------|
> And custom exception handeling work.
Yes, with limitations.
> There are limitation, the class generated with the wdsl, should not
> contains any fields.
:) Which means that you cannot have your own faults. You can however
build one if you manipulate the detail field in an AxisFault.
> By custom exception handling, does not simply mean, throwing
> exception that
> have other fields that the AxisFault ?
Something like that. But in the current implementation you can basically
throw away your generated exception classes and use AxisFault instead.
Anyway if you cannot have your own fields than it doesn't really matter
whether your exception is called AxisFault or MyFault. :(