Exception: Balmora::Shell::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/balmora/shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status = nil)
  super(message)
  @status = status || 1
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/balmora/shell.rb', line 7

def status
  @status
end