[Catalyst-dev] Catalyst::Plugin::Server::XMLRPC fault code patch

Alex Pavlovic alex at taskforce-1.com
Sun Jul 16 12:17:17 CEST 2006


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.


Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlrpc.patch
Type: text/x-diff
Size: 1549 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20060716/c4d87930/attachment.bin 


More information about the Catalyst-dev mailing list