Exception: PaymobRuby::InvalidRequestError

Inherits:
PaymobError
  • Object
show all
Defined in:
lib/paymob_ruby/errors.rb

Overview

InvalidRequestError is raised when a request is initiated with invalid parameters.

Instance Attribute Summary collapse

Attributes inherited from PaymobError

#error, #http_body, #http_headers, #http_status, #json_body, #message

Instance Method Summary collapse

Methods inherited from PaymobError

#to_s

Constructor Details

#initialize(message, param, http_status: nil, http_body: nil) ⇒ InvalidRequestError

Returns a new instance of InvalidRequestError.



51
52
53
54
# File 'lib/paymob_ruby/errors.rb', line 51

def initialize(message, param, http_status: nil, http_body: nil)
  super(message, http_status:, http_body:)
  @param = param
end

Instance Attribute Details

#paramObject

Returns the value of attribute param.



49
50
51
# File 'lib/paymob_ruby/errors.rb', line 49

def param
  @param
end