Exception: AuthorizeNet::Exception
- Inherits:
-
Exception
- Object
- Exception
- AuthorizeNet::Exception
- Defined in:
- lib/authorize_net/exception.rb
Constant Summary collapse
- GENERIC_ERROR_MESSAGE =
"[AuthorizeNet] The Authorize.Net API returned an error"
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = GENERIC_ERROR_MESSAGE) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message = GENERIC_ERROR_MESSAGE) ⇒ Exception
Returns a new instance of Exception.
8 9 10 11 |
# File 'lib/authorize_net/exception.rb', line 8 def initialize(=GENERIC_ERROR_MESSAGE) @message = @errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/authorize_net/exception.rb', line 6 def errors @errors end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/authorize_net/exception.rb', line 5 def @message end |