Exception: Apimaster::RequestError
- Inherits:
-
NormalError
- Object
- StandardError
- NormalError
- Apimaster::RequestError
- Defined in:
- lib/apimaster/error.rb
Instance Attribute Summary
Attributes inherited from NormalError
#code, #error, #field, #resource
Instance Method Summary collapse
-
#initialize(resource = nil, field = nil) ⇒ RequestError
constructor
A new instance of RequestError.
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 |