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.



37
38
39
40
# File 'lib/bertrpc/errors.rb', line 37

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.



36
37
38
# File 'lib/bertrpc/errors.rb', line 36

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



36
37
38
# File 'lib/bertrpc/errors.rb', line 36

def port
  @port
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



36
37
38
# File 'lib/bertrpc/errors.rb', line 36

def timeout
  @timeout
end