Exception: Droonga::Client::Connection::ConnectionError
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(host, port, detail) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
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
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
40 41 42 |
# File 'lib/droonga/client/connection/error.rb', line 40 def detail @detail end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
38 39 40 |
# File 'lib/droonga/client/connection/error.rb', line 38 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
39 40 41 |
# File 'lib/droonga/client/connection/error.rb', line 39 def port @port end |