Exception: Kotoshu::InputFileNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/kotoshu/core/exceptions.rb,
sig/kotoshu.rbs

Overview

Raised when the FILE BEING CHECKED does not exist (plan 141) - distinct from dictionary-resource errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, message = nil) ⇒ InputFileNotFoundError

Returns a new instance of InputFileNotFoundError.

Parameters:

  • path (String)
  • message (String, nil) (defaults to: nil)


20
21
22
23
# File 'lib/kotoshu/core/exceptions.rb', line 20

def initialize(path, message = nil)
  @path = path
  super(message || "Input file not found: #{path}")
end

Instance Attribute Details

#path ⇒ String (readonly)

Returns The path that was not found.

Returns:

  • (String) —

    The path that was not found



26
27
28
# File 'lib/kotoshu/core/exceptions.rb', line 26

def path
  @path
end