[Catalyst-dev] Catalyst::Plugin::Server::XMLRPC fault code patch
Matt S Trout
dbix-class at trout.me.uk
Sun Jul 16 18:53:04 CEST 2006
Alex Pavlovic wrote:
> Hi,
>
> Here is xmlrpc server patch which allows you to set fault code and fault
> message. It adds extra error sub to Request class. The code was tested.
> The patch also fixes a minor error in docs.
>
> For example:
>
> sub authenticate : XMLRPC {
> #...
> if ( $failed ) {
> $c->req->xmlrpc->error( 100, 'Failed to authenticate!' );
> }
> }
>
> Error codes are a big one for me, so I thought this would be useful.
I like the syntax but your patch doesn't seem to have tests to go with it -
any chance you could fix that? :)
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst-dev
mailing list