Exception: Boxafe::Error

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

Overview

TODO: add detailed error description for non-trace mode

Direct Known Subclasses

OptionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 1) ⇒ Error

Returns a new instance of Error.


13
14
15
16
# File 'lib/boxafe.rb', line 13

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code


11
12
13
# File 'lib/boxafe.rb', line 11

def code
  @code
end