Exception: OBarc::Utils::Exceptions::MissingArgumentError
- Inherits:
-
OBarcArgumentError
- Object
- StandardError
- OBarcError
- OBarcArgumentError
- OBarc::Utils::Exceptions::MissingArgumentError
- Defined in:
- lib/obarc/utils/exceptions.rb
Instance Attribute Summary
Attributes inherited from OBarcError
Instance Method Summary (collapse)
-
- (MissingArgumentError) initialize(missed_args)
constructor
A new instance of MissingArgumentError.
Constructor Details
- (MissingArgumentError) initialize(missed_args)
Returns a new instance of MissingArgumentError
19 20 21 22 23 |
# File 'lib/obarc/utils/exceptions.rb', line 19 def initialize(missed_args) list = missed_args.map {|arg| arg.to_s} * (', ') msg = "#{list} are required." super(msg) end |