Exception: OptimistXL::CommandlineError
- Inherits:
-
StandardError
- Object
- StandardError
- OptimistXL::CommandlineError
- Defined in:
- lib/optimist_xl.rb
Overview
Thrown by Parser in the event of a commandline error. Not needed if you’re using the OptimistXL::options entry.
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(msg, error_code = nil) ⇒ CommandlineError
constructor
A new instance of CommandlineError.
Constructor Details
#initialize(msg, error_code = nil) ⇒ CommandlineError
Returns a new instance of CommandlineError.
19 20 21 22 |
# File 'lib/optimist_xl.rb', line 19 def initialize(msg, error_code = nil) super(msg) @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
17 18 19 |
# File 'lib/optimist_xl.rb', line 17 def error_code @error_code end |