Exception: Ably::Exceptions::ConnectionError
- Inherits:
-
BaseAblyException
- Object
- StandardError
- BaseAblyException
- Ably::Exceptions::ConnectionError
- Defined in:
- lib/ably/exceptions.rb
Overview
Connection error from Realtime or REST service
Direct Known Subclasses
ConnectionClosed, ConnectionFailed, ConnectionSuspended, ConnectionTimeout, TransportClosed
Instance Attribute Summary
Attributes inherited from BaseAblyException
Instance Method Summary collapse
-
#initialize(message, status = nil, code = nil, base_error = nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, status = nil, code = nil, base_error = nil) ⇒ ConnectionError
Returns a new instance of ConnectionError.
55 56 57 58 |
# File 'lib/ably/exceptions.rb', line 55 def initialize(, status = nil, code = nil, base_error = nil) super , status, code @base_error = base_error end |
Instance Method Details
#to_s ⇒ Object
60 61 62 63 64 |
# File 'lib/ably/exceptions.rb', line 60 def to_s = [super] << "#{@base_error}" if @base_error .join(' < ') end |