Exception: Droonga::Client::Connection::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/droonga/client/connection/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port, detail) ⇒ ConnectionError

Returns a new instance of ConnectionError.



41
42
43
44
45
46
# File 'lib/droonga/client/connection/error.rb', line 41

def initialize(host, port, detail)
  @host = host
  @port = port
  @detail = detail
  super("Failed to connect: <#{@host}:#{@port}>: #{@detail}")
end

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail.



40
41
42
# File 'lib/droonga/client/connection/error.rb', line 40

def detail
  @detail
end

#hostObject (readonly)

Returns the value of attribute host.



38
39
40
# File 'lib/droonga/client/connection/error.rb', line 38

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



39
40
41
# File 'lib/droonga/client/connection/error.rb', line 39

def port
  @port
end