Exception: EwayRapid::Exceptions::RapidSdkException
- Inherits:
-
StandardError
- Object
- StandardError
- EwayRapid::Exceptions::RapidSdkException
- Defined in:
- lib/eway_rapid/exceptions.rb
Overview
The root exception class for all of business Rapid API exceptions Optional parameters :
-
:error_code the business error code
Direct Known Subclasses
APIKeyInvalidException, AuthenticationFailureException, CommunicationFailureException, ParameterInvalidException, SystemErrorException
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code, message) ⇒ RapidSdkException
constructor
A new instance of RapidSdkException.
Constructor Details
#initialize(error_code, message) ⇒ RapidSdkException
Returns a new instance of RapidSdkException.
10 11 12 13 |
# File 'lib/eway_rapid/exceptions.rb', line 10 def initialize(error_code, ) super() @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
8 9 10 |
# File 'lib/eway_rapid/exceptions.rb', line 8 def error_code @error_code end |