Exception: Ably::Exceptions::ConnectionError
- Inherits:
-
BaseAblyException
- Object
- StandardError
- BaseAblyException
- Ably::Exceptions::ConnectionError
- Defined in:
- lib/submodules/ably-ruby/lib/ably/exceptions.rb
Overview
Connection error from Realtime or REST service
Direct Known Subclasses
AuthenticationFailed, ConnectionClosed, ConnectionFailed, ConnectionSuspended, ConnectionTimeout, TransportClosed
Instance Attribute Summary
Attributes inherited from BaseAblyException
#code, #message, #request_id, #status
Instance Method Summary collapse
-
#initialize(message, status = nil, code = nil, base_exception = nil, options = {}) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #to_s ⇒ Object
Methods inherited from BaseAblyException
Constructor Details
#initialize(message, status = nil, code = nil, base_exception = nil, options = {}) ⇒ ConnectionError
Returns a new instance of ConnectionError.
86 87 88 |
# File 'lib/submodules/ably-ruby/lib/ably/exceptions.rb', line 86 def initialize(, status = nil, code = nil, base_exception = nil, = {}) super , status, code, base_exception, end |
Instance Method Details
#to_s ⇒ Object
90 91 92 93 94 95 96 97 98 99 |
# File 'lib/submodules/ably-ruby/lib/ably/exceptions.rb', line 90 def to_s = [super] if @base_exception << "#{@base_exception}" if @base_exception.respond_to?(:message) && @base_exception..match(/certificate verify failed/i) << "See https://goo.gl/eKvfcR to resolve this issue." end end .join(' < ') end |