Exception: Base::InvalidRequest
- Inherits:
-
StandardError
- Object
- StandardError
- Base::InvalidRequest
- 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
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ InvalidRequest
constructor
A new instance of InvalidRequest.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
14 15 16 |
# File 'lib/base/errors/invalid_request.rb', line 14 def data @data end |