Exception: PaymobRuby::InvalidRequestError
- Inherits:
-
PaymobError
- Object
- StandardError
- PaymobError
- PaymobRuby::InvalidRequestError
- Defined in:
- lib/paymob_ruby/errors.rb
Overview
InvalidRequestError is raised when a request is initiated with invalid parameters.
Instance Attribute Summary collapse
-
#param ⇒ Object
Returns the value of attribute param.
Attributes inherited from PaymobError
#error, #http_body, #http_headers, #http_status, #json_body, #message
Instance Method Summary collapse
-
#initialize(message, param, http_status: nil, http_body: nil) ⇒ InvalidRequestError
constructor
A new instance of InvalidRequestError.
Methods inherited from PaymobError
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(, param, http_status: nil, http_body: nil) super(, http_status:, http_body:) @param = param end |
Instance Attribute Details
#param ⇒ Object
Returns the value of attribute param.
49 50 51 |
# File 'lib/paymob_ruby/errors.rb', line 49 def param @param end |