Exception: Twocheckout::TwocheckoutError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/twocheckout/twocheckout_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil) ⇒ TwocheckoutError

Returns a new instance of TwocheckoutError.



6
7
8
9
# File 'lib/twocheckout/twocheckout_error.rb', line 6

def initialize(message, code = nil)
  @message = message
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/twocheckout/twocheckout_error.rb', line 4

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/twocheckout/twocheckout_error.rb', line 3

def message
  @message
end