ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Hoegg <rho...@isisnetworks.net>
Subject Re: Server side exceptions
Date Thu, 30 Oct 2003 18:09:24 GMT
Tanya Brethour wrote:

>>>>And why not re-generating exception by parsing the message exception ?
>>>>        
>>>>
>>>Because it almost seems like a hack. I just thought there was probably a
>>>more proper way to do it. But maybe there isn't :)
>>>      
>>>
>>Yes... Exceptions are a java mechanism and xmlrpc must be interoperant (with
>>fault
>>codes).
>>    
>>
>
>So, how exactly do I specify the fault codes? I use the server to generate
>the methodReponse bodies... and there doesn't seem to be a way to control
>the fault code part. 
>
>
>Thanks,
>Tanya
>
>  
>
Just throw a new XmlRpcException(int code, String message) from your 
handler.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net


Mime
View raw message