Exception: RCRest::CommunicationError

Inherits:
Error
  • Object
show all
Defined in:
lib/rc_rest.rb

Overview

Error raised when communicating with the server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_exception) ⇒ CommunicationError

Creates a new CommunicationError with message and original_exception



71
72
73
74
75
76
# File 'lib/rc_rest.rb', line 71

def initialize(original_exception)
  @original_exception = original_exception

  message = "Communication error: #{original_exception.message}(#{original_exception.class})"
  super message
end

Instance Attribute Details

#original_exceptionObject

The original exception



66
67
68
# File 'lib/rc_rest.rb', line 66

def original_exception
  @original_exception
end