Exception: BERTRPC::ConnectionError

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

Instance Attribute Summary collapse

Attributes inherited from BERTRPCError

#code, #original_exception

Instance Method Summary collapse

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

#hostObject (readonly)

Returns the value of attribute host.



30
31
32
# File 'lib/bertrpc/errors.rb', line 30

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



30
31
32
# File 'lib/bertrpc/errors.rb', line 30

def port
  @port
end