Exception: Zaypay::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zaypay/error.rb

Overview

Errors that can be raised by the Zaypay gem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, message = "Error thrown by the Zaypay gem.") ⇒ Error

Returns a new instance of Error.



4
5
6
7
# File 'lib/zaypay/error.rb', line 4

def initialize(type = nil, message = "Error thrown by the Zaypay gem.")
  @type = type
  super(message)
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/zaypay/error.rb', line 8

def type
  @type
end