Exception: BERTRPC::ConnectionError
- Inherits:
-
BERTRPCError
- Object
- StandardError
- BERTRPCError
- BERTRPC::ConnectionError
- Defined in:
- lib/bertrpc/errors.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Attributes inherited from BERTRPCError
Instance Method Summary collapse
-
#initialize(host, port) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
Constructor Details
#initialize(host, port) ⇒ ConnectionError
Returns a new instance of ConnectionError.
31 32 33 34 |
# File 'lib/bertrpc/errors.rb', line 31 def initialize(host, port) @host, @port = host, port super("Unable to connect to #{host}:#{port}") end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
30 31 32 |
# File 'lib/bertrpc/errors.rb', line 30 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
30 31 32 |
# File 'lib/bertrpc/errors.rb', line 30 def port @port end |