Method: Beaker::Options::Validator#validator_error

Defined in:
lib/beaker/options/validator.rb

#validator_error(msg = '') ⇒ Object Also known as: parser_error

Raises an ArgumentError with associated message

Parameters:

  • msg (String) (defaults to: '')

    The error message to be reported

Raises:

  • (ArgumentError)

    Takes the supplied message and raises it as an ArgumentError



27
28
29
# File 'lib/beaker/options/validator.rb', line 27

def validator_error(msg = '')
  raise ArgumentError, msg.to_s
end