Exception: LegoEv3::RemoteConnectionException
- Inherits:
-
Exception
- Object
- Exception
- LegoEv3::RemoteConnectionException
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(host, user, password) ⇒ RemoteConnectionException
constructor
A new instance of RemoteConnectionException.
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 |