Exception: BERTRPC::ReadTimeoutError
- Inherits:
-
BERTRPCError
- Object
- StandardError
- BERTRPCError
- BERTRPC::ReadTimeoutError
- Defined in:
- lib/bertrpc/errors.rb
Overview
Raised when we don’t get a response from a server in a timely manner. This typically occurs in spite of a successful connection.
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Attributes inherited from BERTRPCError
Instance Method Summary collapse
-
#initialize(host, port, timeout) ⇒ ReadTimeoutError
constructor
A new instance of ReadTimeoutError.
Constructor Details
#initialize(host, port, timeout) ⇒ ReadTimeoutError
Returns a new instance of ReadTimeoutError.
41 42 43 44 |
# File 'lib/bertrpc/errors.rb', line 41 def initialize(host, port, timeout) @host, @port, @timeout = host, port, timeout super("No response from #{host}:#{port} in #{timeout}s") end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
40 41 42 |
# File 'lib/bertrpc/errors.rb', line 40 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
40 41 42 |
# File 'lib/bertrpc/errors.rb', line 40 def port @port end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
40 41 42 |
# File 'lib/bertrpc/errors.rb', line 40 def timeout @timeout end |