You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Pēteris Caune <cu...@gmail.com> on 2006/06/20 19:01:08 UTC
raising xmlrpc errors with faultCode other than 0
Hello,
I was wondering how to raise an XmlRpcException with faultCode other than 0.
Depending only on strings is risky, and faultCode looks perfect for
fixed list of my own programmatic exceptions (like "connection to
database lost" and such).
Still, somehow, throw new XmlRpcException(-123,"some text") from my
class returns faultCode 0.
Is that a bug, or should i report exceptions other ways?
I am using Apache XML-RPC v3.
Sincerely, Toms Baugis
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org
Re: raising xmlrpc errors with faultCode other than 0
Posted by Jochen Wiedmann <jo...@gmail.com>.
On 6/20/06, Pēteris Caune <cu...@gmail.com> wrote:
> Still, somehow, throw new XmlRpcException(-123,"some text") from my
> class returns faultCode 0.
>
> Is that a bug, or should i report exceptions other ways?
If that's as you say, please file a bug report.
Jochen
--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)