Exception: PayPro::Error

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

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, http_status: nil, http_body: nil, http_headers: nil, code: nil) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/pay_pro/errors.rb', line 5

def initialize(
  message: nil,
  http_status: nil,
  http_body: nil,
  http_headers: nil,
  code: nil
)
  @message = message
  @http_status = http_status
  @http_body = http_body
  @http_headers = http_headers
  @code = code

  super(@message)
end