Exception: ModpackLocalizer::InvalidLineCountError

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

Overview

行数が異なる場合のエラークラス

Constant Summary collapse

INVALID_LINE_COUNT =
<<~TEXT.freeze
  \n
  Invalid line count: %s
TEXT

Instance Method Summary collapse

Constructor Details

#initialize(expect_count, actual_count) ⇒ ModpackLocalizer::InvalidLineCountError

Parameters:

  • expect_count (Integer)

    期待する行数

  • actual_count (Integer)

    実際の行数



31
32
33
# File 'lib/modpack_localizer/util/error.rb', line 31

def initialize(expect_count, actual_count)
  super(format(INVALID_LINE_COUNT, "Expected: #{expect_count}, Actual: #{actual_count}"))
end