Exception: System::Exception::CriticalException
- Inherits:
-
Exception
- Object
- Exception
- System::Exception::CriticalException
- Defined in:
- lib/system/exception.rb
Instance Method Summary collapse
-
#initialize(message, command, exit) ⇒ CriticalException
constructor
A new instance of CriticalException.
- #to_s ⇒ Object
Constructor Details
#initialize(message, command, exit) ⇒ CriticalException
Returns a new instance of CriticalException.
4 5 6 7 8 |
# File 'lib/system/exception.rb', line 4 def initialize(, command, exit) @message = @command = command @exit = exit end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/system/exception.rb', line 10 def to_s <<EOF #{@message} Command (#{@command}) exiting with code #{@exit} EOF end |