RuntimeError
Base class of exceptions from Gem::OptionParser.
# File rubygems/optparse/lib/optparse.rb, line 2072
def inspect
"#<#{self.class}: #{args.join(' ')}>"
end
Default stringizing method to emit standard error message.
# File rubygems/optparse/lib/optparse.rb, line 2079
def message
"#{reason}: #{args.join(' ')}#{additional[@arg0] if additional}"
end
Returns error reason. Override this for I18N.
# File rubygems/optparse/lib/optparse.rb, line 2068
def reason
@reason || self.class::Reason
end
Pushes back erred argument(s) to argv.
# File rubygems/optparse/lib/optparse.rb, line 2040
def recover(argv)
argv[0, 0] = @args
argv
end
# File rubygems/optparse/lib/optparse.rb, line 2052
def set_backtrace(array)
super(self.class.filter_backtrace(array))
end