Module: Error
- Defined in:
- lib/error.rb
Class Method Summary collapse
-
.fatal(message) ⇒ Object
Exits without callbacks to at_exit.
- .nonfatal(message) ⇒ Object
Class Method Details
.fatal(message) ⇒ Object
Exits without callbacks to at_exit
17 18 19 20 |
# File 'lib/error.rb', line 17 def self.fatal () STDERR.puts('can: ' + ) exit!(EXIT_FAILURE) end |
.nonfatal(message) ⇒ Object
11 12 13 14 |
# File 'lib/error.rb', line 11 def self.nonfatal () STDERR.puts('can: ' + ) $exit = EXIT_FAILURE end |