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



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

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



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

def original_exception
  @original_exception
end