On Thu, Jun 18, 2009 at 9:15 AM, Michael Ochs <[email protected]> wrote:

> Hi,
>
> I'm currently working on the basics of a quite big RPC server. I'm
> using the qooxdoo rpc server for php. In the test class it says you
> can call
> throw new JsonRpcError(ERRORCODE, ERRORMESSAGE);
> from everywhere in your script.
>
> But when I try this (and even when I run the test service) it says
> "Fatal PHP Error: Exceptions must be valid objects derived from the
> Exception base class in ..."
>
> When I had a look in the JsonRpcError constructor it seems like it is
> using totally different parameters. Does anybody know how to use this
> correctly in a method where I don't have the $error var? The only
> thing that I know in this part of the app is, that I am in a service
> class.
>

Ah, yes. It appears that the new (trunk) version of the PHP backend has
broken the interface to JsonRpcError. I'm cc:ing Christian so he can
hopefully get that fixed. (Christian, if you need those extra parameters in
your implementation, you can probably just move them to the end of the
parameter list to maintain backward compatibility.)

In the mean time, please use the 1.0.0 version of RpcPhp instead of trunk.
You won't get the benefits of the nice OO design that Christian has produced
in the trunk version, but the test of throwing an error should work properly
with 1.0.0.

Cheers,

Derrell
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to