DOKK / manpages / debian 11 / libjson-rpc-common-perl / JSON::RPC::Common::Procedure::Return::Version_1_0::Error.3pm.en
JSON::RPC::Common::Procedure::Return::Version_1_0::Error(3pm) User Contributed Perl Documentation JSON::RPC::Common::Procedure::Return::Version_1_0::Error(3pm)

JSON::RPC::Common::Procedure::Return::Version_1_0::Error - JSON-RPC 1.0 error class.

version 0.11

        my $return_with_error = $call->return_error("foo");

JSON-RPC 1.0 doesn't actually specify what the hell goes in the error field, so in order to make 1.0+2.0 server implementations easy this class is provided as a compatibility layer.

Inflating a string instantiates an error with an unset code and the string as the message.

See JSON::RPC::Common::Procedure::Return::Error

Yuval Kogman <nothingmuch@woobling.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.

2020-06-23 perl v5.30.3