Exception: Zaypay::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Zaypay::Error
- Defined in:
- lib/zaypay/error.rb
Overview
Errors that can be raised by the Zaypay gem
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil, message = "Error thrown by the Zaypay gem.") ⇒ Error
constructor
A new instance of Error.
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, = "Error thrown by the Zaypay gem.") @type = type super() end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/zaypay/error.rb', line 8 def type @type end |