Exception: Coradoc::IncludeNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/coradoc/errors.rb

Overview

Error raised when an include directive’s target cannot be located. Honors the missing_include policy: :error raises this; :warn, :silent, and :passthrough swallow it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ IncludeNotFoundError

Returns a new instance of IncludeNotFoundError.



292
293
294
295
# File 'lib/coradoc/errors.rb', line 292

def initialize(target)
  @target = target
  super("Include target not found: #{target}")
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



290
291
292
# File 'lib/coradoc/errors.rb', line 290

def target
  @target
end