Take me over?The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.
JSON::RPC::Common::Procedure::Return::Error - Base class for JSON-RPC errors
use JSON::RPC::Common::Procedure::Return::Error; my $error = JSON::RPC::Common::Procedure::Return::Error->new( message => "foo", code => "bah", ); # or construct a return with an error from a call: my $return = $call->return_error("foo"); $return->error->message;
This is a base class for all version specific error implementations.
These are the three common JSON-RPC error fields. In JSON-RPC 1.1
datais known as
error, and in 1.0 none of this is specced at all.
See the version specific subclasses for various behaviors.
Code is an integer, and message is a string.
Convenience constructor used by "return_error" in JSON::RPC::Common::Procedure::Call.
Will return an object if that's the argument, and otherwise construct an error.
Create an error object from JSON data (not text).
In order to maximize compatibility this inflation routine is very liberal in what it accepts.
Yuval Kogman <firstname.lastname@example.org>
This software is copyright (c) 2014 by Yuval Kogman and others.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.