Exception: RCRest::CommunicationError
- Defined in:
- lib/rc_rest.rb
Overview
Error raised when communicating with the server
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
The original exception.
Instance Method Summary collapse
-
#initialize(original_exception) ⇒ CommunicationError
constructor
Creates a new CommunicationError with
messageandoriginal_exception.
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 = "Communication error: #{original_exception.message}(#{original_exception.class})" super end |
Instance Attribute Details
#original_exception ⇒ Object
The original exception
66 67 68 |
# File 'lib/rc_rest.rb', line 66 def original_exception @original_exception end |