Exception: EwayRapid::Exceptions::RapidSdkException

Inherits:
StandardError
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  super(message)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



8
9
10
# File 'lib/eway_rapid/exceptions.rb', line 8

def error_code
  @error_code
end