Exception: Recheck::Optimist::CommandlineError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/recheck/vendor/optimist.rb

Overview

Thrown by Parser in the event of a commandline error. Not needed if you’re using the Optimist::options entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, error_code = nil) ⇒ CommandlineError

Returns a new instance of CommandlineError.



28
29
30
31
# File 'lib/recheck/vendor/optimist.rb', line 28

def initialize(msg, error_code = nil)
  super(msg)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



26
27
28
# File 'lib/recheck/vendor/optimist.rb', line 26

def error_code
  @error_code
end