Exception: OptSimple::Error
- Inherits:
-
Exception
- Object
- Exception
- OptSimple::Error
- Defined in:
- lib/opt_simple.rb
Overview
A general error in the options
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(string, option_obj = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(string, option_obj = nil) ⇒ Error
Returns a new instance of Error.
486 487 488 489 |
# File 'lib/opt_simple.rb', line 486 def initialize(string,option_obj=nil) super("#{string}\n#{option_obj.to_s}") set_backtrace [] end |