Exception: Doing::Errors::DoingRuntimeError
- Defined in:
- lib/doing/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg = 'Runtime Error', exit_code = nil, topic: 'Error:') ⇒ DoingRuntimeError
constructor
A new instance of DoingRuntimeError.
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 |