Exception: Balanced::UnassociatedCardError
- Inherits:
-
StandardError
- Object
- StandardError
- Error
- StandardError
- Balanced::UnassociatedCardError
- Defined in:
- lib/balanced/error.rb
Overview
Raised when attempted to create a debit or hold for a card not associated to a customer.
Instance Attribute Summary
Attributes inherited from StandardError
Attributes inherited from Error
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(card) ⇒ UnassociatedCardError
constructor
A new instance of UnassociatedCardError.
Methods inherited from Error
Constructor Details
#initialize(card) ⇒ UnassociatedCardError
Returns a new instance of UnassociatedCardError.
66 67 68 69 |
# File 'lib/balanced/error.rb', line 66 def initialize(card) @card = card super() end |
Instance Method Details
#error_message ⇒ Object
71 72 73 |
# File 'lib/balanced/error.rb', line 71 def "The Balanced::Card with uri=#{@card.attributes['uri']} is not associated to a customer" end |