Exception: BERTRPC::ReadTimeoutError

Inherits:
BERTRPCError
  • Object
show all
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

Attributes inherited from BERTRPCError

#code, #original_exception

Instance Method Summary collapse

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

#hostObject (readonly)

Returns the value of attribute host.



40
41
42
# File 'lib/bertrpc/errors.rb', line 40

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



40
41
42
# File 'lib/bertrpc/errors.rb', line 40

def port
  @port
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



40
41
42
# File 'lib/bertrpc/errors.rb', line 40

def timeout
  @timeout
end