Exception: Doing::Errors::WrongCommand

Inherits:
StandardError
  • Object
show all
Defined in:
lib/doing/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'wrong command', topic: 'Error:') ⇒ WrongCommand

Returns a new instance of WrongCommand.



30
31
32
33
34
# File 'lib/doing/errors.rb', line 30

def initialize(msg = 'wrong command', topic: 'Error:')
  Doing.logger.warn(topic, msg)

  super(msg)
end