JSON::RPC::Common::Procedure::Return::Version_1_1::Error - JSON-RPC 1.1 error class.
my $return_with_error = $call->return_error("foo");
This class implements 1.1 error objects.
code and message are mandatory.
code
message
The data field is named error in the deflated version and name is set to JSONRPCError. How exciting.
data
error
name
JSONRPCError
See JSON::RPC::Common::Procedure::Return::Error.
To install JSON::RPC::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::RPC::Common
CPAN shell
perl -MCPAN -e shell install JSON::RPC::Common
For more information on module installation, please visit the detailed CPAN module installation guide.