Exception: Doing::Errors::WrongCommand
- Inherits:
-
DoingNoTraceError
- Object
- StandardError
- DoingNoTraceError
- Doing::Errors::WrongCommand
- Defined in:
- lib/doing/errors.rb
Instance Method Summary collapse
-
#initialize(msg = 'wrong command', topic: 'Error:') ⇒ WrongCommand
constructor
A new instance of WrongCommand.
Constructor Details
#initialize(msg = 'wrong command', topic: 'Error:') ⇒ WrongCommand
Returns a new instance of WrongCommand.
38 39 40 |
# File 'lib/doing/errors.rb', line 38 def initialize(msg = 'wrong command', topic: 'Error:') super(msg, level: :warn, topic: topic, exit_code: 2) end |