Exception: Wooget::WoogetError
- Inherits:
-
StandardError
- Object
- StandardError
- Wooget::WoogetError
- Defined in:
- lib/wooget/util/build_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(msg = nil, exit_code = 1) ⇒ WoogetError
constructor
A new instance of WoogetError.
Constructor Details
#initialize(msg = nil, exit_code = 1) ⇒ WoogetError
Returns a new instance of WoogetError.
7 8 9 10 |
# File 'lib/wooget/util/build_error.rb', line 7 def initialize msg = nil, exit_code = 1 super msg @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
5 6 7 |
# File 'lib/wooget/util/build_error.rb', line 5 def exit_code @exit_code end |