Exception: Payassist::Error

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

Overview

Standard API error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
# File 'lib/payassist/errors.rb', line 10

def initialize(message, code)
  @code = code
  @data = message
  super("Error code #{code} #{message}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



8
9
10
# File 'lib/payassist/errors.rb', line 8

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/payassist/errors.rb', line 8

def data
  @data
end