Exception: Foxtail::CLI::CheckError

Inherits:
Error show all
Defined in:
lib/foxtail/cli.rb

Overview

Raised when check command finds errors in FTL files

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_count) ⇒ CheckError

Returns a new instance of CheckError.

Parameters:

  • error_count (Integer)

    Number of errors found



24
25
26
27
# File 'lib/foxtail/cli.rb', line 24

def initialize(error_count)
  @error_count = error_count
  super("Check found #{error_count} error(s)")
end

Instance Attribute Details

#error_countInteger (readonly)

Returns Number of errors found.

Returns:

  • (Integer)

    Number of errors found



21
22
23
# File 'lib/foxtail/cli.rb', line 21

def error_count
  @error_count
end