RPC::Any::Exception - A throwable exception object for RPC::Any
use RPC::Any::Exception; die RPC::Any::Exception(code => 1234, message => "I'm dead!");
This object represents an exception that an RPC::Any::Server can throw. See "ERROR HANDLING" in RPC::Any::Server for information about how to use this in your own code.
There are various types of built-in errors that an RPC::Any::Server can throw. They have specific error codes that correlate with the error codes specified at http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php (which are valid for both JSON-RPC and XML-RPC).
What follows is a brief description of each type of error (which is a subclass of RPC::Any::Exception) and its numeric code:
Code: -32603
Something called "die" with something that wasn't an RPC::Any::Exception. This is just a basic Perl error. The message will be the error that "die" threw.
Code: -32300
There was a problem with the HTTP protocol on the input. The message will have more details.
Code: -32700
There was an error parsing the input for the RPC protocol. The message will have more details.
Code: -32601
The RPC request contained an invalid method. The message will have more details.
To install RPC::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPC::Any
CPAN shell
perl -MCPAN -e shell install RPC::Any
For more information on module installation, please visit the detailed CPAN module installation guide.