Exception: OTerm::CommandError
- Inherits:
-
Exception
- Object
- Exception
- OTerm::CommandError
- Defined in:
- lib/oterm/errors.rb
Instance Method Summary collapse
-
#initialize(cmd) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(cmd) ⇒ CommandError
Returns a new instance of CommandError.
5 6 7 |
# File 'lib/oterm/errors.rb', line 5 def initialize(cmd) super("#{cmd} is not a valid command") end |