Exception: OBarc::Utils::Exceptions::InvalidArgumentError

Inherits:
OBarcArgumentError show all
Defined in:
lib/obarc/utils/exceptions.rb

Instance Attribute Summary

Attributes inherited from OBarcError

#message

Instance Method Summary (collapse)

Constructor Details

- (InvalidArgumentError) initialize(invalid_args, msg = nil)

Returns a new instance of InvalidArgumentError



27
28
29
30
31
# File 'lib/obarc/utils/exceptions.rb', line 27

def initialize(invalid_args, msg = nil)
  list = invalid_args.map {|arg| arg.to_s} * (', ')
  msg ||= "#{list} can not be blank."
  super(msg)
end