Exception: Mirakl::InvalidRequestError
- Inherits:
-
MiraklError
- Object
- StandardError
- MiraklError
- Mirakl::InvalidRequestError
- Defined in:
- lib/mirakl/errors.rb
Overview
BadRequestError is raised when a request is initiated with invalid parameters.
Instance Attribute Summary
Attributes inherited from MiraklError
#code, #http_body, #http_headers, #http_status, #json_body, #message, #response
Instance Method Summary collapse
-
#initialize(message, param, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) ⇒ InvalidRequestError
constructor
A new instance of InvalidRequestError.
Methods inherited from MiraklError
Constructor Details
#initialize(message, param, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) ⇒ InvalidRequestError
Returns a new instance of InvalidRequestError.
43 44 45 46 47 48 49 |
# File 'lib/mirakl/errors.rb', line 43 def initialize(, param, http_status: nil, http_body: nil, json_body: nil, http_headers: nil, code: nil) super(, http_status: http_status, http_body: http_body, json_body: json_body, http_headers: http_headers, code: code) @param = param end |