Exception: Apimaster::RequestError

Inherits:
NormalError
  • Object
show all
Defined in:
lib/apimaster/error.rb

Instance Attribute Summary

Attributes inherited from NormalError

#code, #error, #field, #resource

Instance Method Summary collapse

Constructor Details

#initialize(resource = nil, field = nil) ⇒ RequestError

Returns a new instance of RequestError.



56
57
58
# File 'lib/apimaster/error.rb', line 56

def initialize(resource = nil, field = nil)
  super("Problems parsing JSON.", 400, :parse_error, resource, field)
end