Exception: ModpackLocalizer::InvalidRegionCodeError

Inherits:
Error
  • Object
show all
Defined in:
lib/modpack_localizer/util/error.rb

Constant Summary collapse

INVALID_LOCALE_CODE =
<<~TEXT.freeze
  \n
  %s is an invalid region code.
  Please specify a valid language or country or region code.
TEXT

Instance Method Summary collapse

Constructor Details

#initialize(locale_code) ⇒ InvalidRegionCodeError

Returns a new instance of InvalidRegionCodeError.



43
44
45
# File 'lib/modpack_localizer/util/error.rb', line 43

def initialize(locale_code)
  super(format(INVALID_LOCALE_CODE, locale_code))
end