Exception: Ably::Exceptions::ConnectionError

Inherits:
BaseAblyException show all
Defined in:
lib/ably/exceptions.rb

Overview

Connection error from Realtime or REST service

Instance Attribute Summary

Attributes inherited from BaseAblyException

#code, #message, #status

Instance Method Summary collapse

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(message, status = nil, code = nil, base_error = nil)
  super message, status, code
  @base_error = base_error
end

Instance Method Details

#to_sObject



60
61
62
63
64
# File 'lib/ably/exceptions.rb', line 60

def to_s
  message = [super]
  message << "#{@base_error}" if @base_error
  message.join(' < ')
end