Exception: Bazil::ConnectionError
- Inherits:
-
BazilError
- Object
- RuntimeError
- BazilError
- Bazil::ConnectionError
- Defined in:
- lib/bazil/error.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(method, address, port) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #to_s ⇒ Object
Methods inherited from BazilError
Constructor Details
#initialize(method, address, port) ⇒ ConnectionError
Returns a new instance of ConnectionError.
11 12 13 14 15 |
# File 'lib/bazil/error.rb', line 11 def initialize(method, address, port) @method = method @address = address @port = port end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
9 10 11 |
# File 'lib/bazil/error.rb', line 9 def address @address end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
9 10 11 |
# File 'lib/bazil/error.rb', line 9 def method @method end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
9 10 11 |
# File 'lib/bazil/error.rb', line 9 def port @port end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/bazil/error.rb', line 17 def to_s "Failed to connect to the server at #{@method} method: server = #{@address}:#{@port}" end |