Exception: LegoEv3::RemoteConnectionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, user, password) ⇒ RemoteConnectionException

Returns a new instance of RemoteConnectionException.



3
4
5
6
7
8
9
# File 'lib/exceptions.rb', line 3

def initialize(host, user, password)
  super(
    "Could not connect to the brick. " +
    "Make sure these command works: " +
    "[ping #{host}]" +
    "[ssh #{user}@#{host} + enter your password]")
end