Exception: MasterCard::Core::Exceptions::APIConnectionException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- MasterCard::Core::Exceptions::APIConnectionException
- Defined in:
- lib/mastercard/core/exceptions.rb
Overview
ApiConnectionException
Instance Method Summary collapse
-
#initialize(message = nil, status = nil, error_data = nil) ⇒ APIConnectionException
constructor
Exception raised when there are communication problems contacting the API.
Methods inherited from APIException
#describe, #getErrorCode, #getErrorData, #getMessage, #getStatus, #to_s
Constructor Details
#initialize(message = nil, status = nil, error_data = nil) ⇒ APIConnectionException
Exception raised when there are communication problems contacting the API.
123 124 125 126 127 128 129 130 131 132 |
# File 'lib/mastercard/core/exceptions.rb', line 123 def initialize(=nil,status=nil,error_data=nil) if status.nil? status = 500 end #Call the base class constructor super(,status,error_data) end |