Exception: Mirakl::InvalidRequestError

Inherits:
MiraklError
  • Object
show all
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

Methods inherited from MiraklError

#to_s

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(message, param, http_status: nil, http_body: nil,
               json_body: nil, http_headers: nil, code: nil)
  super(message, http_status: http_status, http_body: http_body,
                 json_body: json_body, http_headers: http_headers,
                 code: code)
  @param = param
end