Exception: AlphaCard::AlphaCardError
- Inherits:
-
StandardError
- Object
- StandardError
- AlphaCard::AlphaCardError
- Defined in:
- lib/alpha_card/errors/alpha_card_error.rb
Overview
Common class for Alpha Card Gateway errors and exceptions.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Error message.
-
#response ⇒ Object
readonly
Alpha Card Gateway response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil) ⇒ AlphaCardError
constructor
AlphaCard::AlphaCardError
constructor.
Constructor Details
#initialize(message = nil, response = nil) ⇒ AlphaCardError
AlphaCard::AlphaCardError
constructor.
24 25 26 27 |
# File 'lib/alpha_card/errors/alpha_card_error.rb', line 24 def initialize( = nil, response = nil) @message = @response = response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Error message.
10 11 12 |
# File 'lib/alpha_card/errors/alpha_card_error.rb', line 10 def @message end |
#response ⇒ Object (readonly)
Alpha Card Gateway response.
7 8 9 |
# File 'lib/alpha_card/errors/alpha_card_error.rb', line 7 def response @response end |