Exception: Balmora::Shell::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Balmora::Shell::Error
- Defined in:
- lib/balmora/shell.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status = nil) ⇒ Error
Returns a new instance of Error.
9 10 11 12 |
# File 'lib/balmora/shell.rb', line 9 def initialize(, status = nil) super() @status = status || 1 end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/balmora/shell.rb', line 7 def status @status end |