Exception: Base::InvalidRequest

Inherits:
StandardError
  • Object
show all
Defined in:
lib/base/errors/invalid_request.rb

Overview

The error for invalid API requests, which are returned from API in the following JSON format:

{
  "error": "TYPE_OF_ERROR",
  "data": {
    "key": "Additional information."
  }
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



16
17
18
# File 'lib/base/errors/invalid_request.rb', line 16

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



14
15
16
# File 'lib/base/errors/invalid_request.rb', line 14

def data
  @data
end