Class: JsonRpcObjects::V11::Alt::Error

Inherits:
WD::Error show all
Defined in:
lib/json-rpc-objects/v11/alt/error.rb

Overview

Error description object class for ProcedureReturn.

Direct Known Subclasses

JsonRpcObjects::V20::Error

Constant Summary collapse

VERSION =

Holds link to its version module.

JsonRpcObjects::V11::Alt

Constants inherited from WD::Error

WD::Error::DATA_MEMBER_NAME

Instance Attribute Summary

Attributes inherited from WD::Error

#code, #data, #message

Attributes included from WD::Extensions

#extensions

Attributes inherited from JsonRpcObjects::V10::Error

#data

Attributes inherited from Generic::Object

#serializer

Instance Method Summary collapse

Methods inherited from WD::Error

create

Methods included from WD::Extensions

#[], #[]=, #method_missing

Methods inherited from JsonRpcObjects::V10::Error

create

Methods inherited from Generic::Object

create, #initialize, parse, #serialize, #to_json, version

Constructor Details

This class inherits a constructor from JsonRpcObjects::Generic::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class JsonRpcObjects::V11::WD::Extensions

Instance Method Details

#check!Object

Checks correctness of the data.



41
42
43
# File 'lib/json-rpc-objects/v11/alt/error.rb', line 41

def check!
    self.normalize!
end

#outputHash

Renders data to output hash.

Returns:

  • (Hash)

    with data of error



50
51
52
53
54
55
# File 'lib/json-rpc-objects/v11/alt/error.rb', line 50

def output
    result = super()
    result.delete("name")
    
    return result
end