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