Exception: Boxafe::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Boxafe::Error
- Defined in:
- lib/boxafe.rb
Overview
TODO: add detailed error description for non-trace mode
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code = 1) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/boxafe.rb', line 11 def code @code end |