Exception: MaliPoPay::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/malipopay/errors.rb

Overview

Base error class for all MaliPoPay errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, http_status: nil, response_body: nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
12
# File 'lib/malipopay/errors.rb', line 8

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

Instance Attribute Details

#http_statusObject (readonly)

Returns the value of attribute http_status.



6
7
8
# File 'lib/malipopay/errors.rb', line 6

def http_status
  @http_status
end

#response_bodyObject (readonly)

Returns the value of attribute response_body.



6
7
8
# File 'lib/malipopay/errors.rb', line 6

def response_body
  @response_body
end