GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JSON::RPC::COMMON::PROCEDURE::RETURN::ERROR (3)

.ds Aq ’

NAME

JSON::RPC::Common::Procedure::Return::Error - Base class for JSON-RPC errors

CONTENTS

VERSION

version 0.11

SYNOPSIS



        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;



DESCRIPTION

This is a base class for all version specific error implementations.

ATTRIBUTES

code
message
data These are the three common JSON-RPC error fields. In JSON-RPC 1.1 data is 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.

METHODS

new_dwim 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.

inflate Create an error object from JSON data (not text).

In order to maximize compatibility this inflation routine is very liberal in what it accepts.

AUTHOR

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JSON::RPC::COMMON::PROCEDURE::RETURN::ERROR (3) 2014-02-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.