Exception: Doing::Errors::DoingNoTraceError
- Defined in:
- lib/doing/errors.rb
Direct Known Subclasses
EmptyInput, HistoryLimitError, MissingBackupFile, NoResults, UserCancelled, WrongCommand
Instance Method Summary collapse
-
#initialize(msg = nil, level: nil, topic: 'Error:', exit_code: 1) ⇒ DoingNoTraceError
constructor
A new instance of DoingNoTraceError.
Constructor Details
#initialize(msg = nil, level: nil, topic: 'Error:', exit_code: 1) ⇒ DoingNoTraceError
Returns a new instance of DoingNoTraceError.
6 7 8 9 10 11 12 13 14 |
# File 'lib/doing/errors.rb', line 6 def initialize(msg = nil, level: nil, topic: 'Error:', exit_code: 1) level ||= :error Doing.logger.output_results if msg Doing.logger.log_now(level, topic, msg) end Process.exit exit_code end |