Exception: Epuber::Compiler::FileFinders::FileNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/epuber/compiler/file_finders/abstract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern, context_path) ⇒ FileNotFoundError

Returns a new instance of FileNotFoundError.

Parameters:

  • pattern (String)
  • context_path (String)


18
19
20
21
22
23
# File 'lib/epuber/compiler/file_finders/abstract.rb', line 18

def initialize(pattern, context_path)
  super()

  @pattern = pattern
  @context_path = context_path
end

Instance Attribute Details

#context_pathString (readonly)

Returns:

  • (String)


13
14
15
# File 'lib/epuber/compiler/file_finders/abstract.rb', line 13

def context_path
  @context_path
end

#patternString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/epuber/compiler/file_finders/abstract.rb', line 9

def pattern
  @pattern
end

Instance Method Details

#to_sObject



25
26
27
# File 'lib/epuber/compiler/file_finders/abstract.rb', line 25

def to_s
  "Not found file matching pattern `#{pattern}` from context path #{context_path}."
end