Exception: Doing::Errors::DoingRuntimeError

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

Direct Known Subclasses

InvalidPlugin

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Runtime Error', exit_code = nil, topic: 'Error:') ⇒ DoingRuntimeError

Returns a new instance of DoingRuntimeError.



44
45
46
47
48
49
# File 'lib/doing/errors.rb', line 44

def initialize(msg = 'Runtime Error', exit_code = nil, topic: 'Error:')
  Doing.logger.output_results
  Doing.logger.log_now(:error, topic, msg)

  Process.exit exit_code if exit_code
end