Exception: Doing::Errors::UserCancelled

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Cancelled', topic = 'Exited:') ⇒ UserCancelled

Returns a new instance of UserCancelled.



6
7
8
9
10
# File 'lib/doing/errors.rb', line 6

def initialize(msg = 'Cancelled', topic = 'Exited:')
  Doing.logger.output_results
  Doing.logger.log_now(:warn, topic, msg)
  Process.exit 1
end