Exception: Scide::Error

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

Overview

TODO: add detailed error description for non-trace mode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 1) ⇒ Error

Returns a new instance of Error.



12
13
14
15
# File 'lib/scide.rb', line 12

def initialize msg, code = 1
  super msg
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/scide.rb', line 10

def code
  @code
end