Exception: Flags::InvalidFlagValueError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Flags::InvalidFlagValueError
- 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
-
#initialize(flag_name, flag_value, error_message) ⇒ InvalidFlagValueError
constructor
A new instance of InvalidFlagValueError.
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, ) super("Flag value #{flag_value.inspect} for flag -#{flag_name.to_s} is invalid: #{}") end |