Exception: BERTRPC::ReadError

Inherits:
BERTRPCError show all
Defined in:
lib/bertrpc/errors.rb

Overview

Raised when unexpected EOF is reached on the socket.

Instance Attribute Summary collapse

Attributes inherited from BERTRPCError

#code, #original_exception

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ ReadError

Returns a new instance of ReadError.



50
51
52
53
# File 'lib/bertrpc/errors.rb', line 50

def initialize(host, port)
  @host, @port = host, port
  super("Unable to read from #{host}:#{port}")
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



49
50
51
# File 'lib/bertrpc/errors.rb', line 49

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



49
50
51
# File 'lib/bertrpc/errors.rb', line 49

def port
  @port
end