Class: Elastictastic::ConnectionFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/elastictastic/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ ConnectionFailed

Returns a new instance of ConnectionFailed.



11
12
13
14
# File 'lib/elastictastic/errors.rb', line 11

def initialize(source)
  super(source.message)
  @source = source
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



9
10
11
# File 'lib/elastictastic/errors.rb', line 9

def source
  @source
end