Exception: GQTP::ConnectionError
- Defined in:
- lib/gqtp/error.rb
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.
27 28 29 30 31 32 33 |
# File 'lib/gqtp/error.rb', line 27 def initialize(host, port, detail) @host = host @port = port @detail = detail super("Failed to connect to <#{@host}:#{@port}>: " + "#{@detail.} (#{@detail.class})") end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
26 27 28 |
# File 'lib/gqtp/error.rb', line 26 def detail @detail end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
24 25 26 |
# File 'lib/gqtp/error.rb', line 24 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
25 26 27 |
# File 'lib/gqtp/error.rb', line 25 def port @port end |