Exception: Flags::InvalidFlagValueError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/flags.rb

Overview

A subclass of ArgumentError that’s raised when an invalid value is assigned to a flag.

Instance Method Summary collapse

Constructor Details

#initialize(flag_name, flag_value, error_message) ⇒ InvalidFlagValueError

Returns a new instance of InvalidFlagValueError.



356
357
358
# File 'lib/flags.rb', line 356

def initialize(flag_name, flag_value, error_message)
  super("Flag value #{flag_value.inspect} for flag -#{flag_name.to_s} is invalid: #{error_message}")
end