Exception: MyTargetApi::ConnectionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/my_target_api/connection_error.rb

Overview

Error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ ConnectionError

Returns a new instance of ConnectionError.



9
10
11
12
# File 'lib/my_target_api/connection_error.rb', line 9

def initialize(exception)
  @original_exception = exception
  @exception = exception
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



7
8
9
# File 'lib/my_target_api/connection_error.rb', line 7

def original_exception
  @original_exception
end

Instance Method Details

#messageObject



14
15
16
# File 'lib/my_target_api/connection_error.rb', line 14

def message
  @exception.message
end