Exception: Coradoc::UnresolvedIncludesError
- Defined in:
- lib/coradoc/errors.rb
Overview
Raised when a document still contains unresolved include:: edges
at serialization time and the target format cannot represent them
(it would silently drop the content). Resolve the graph first with
Coradoc.resolve_includes, or opt out with
allow_unresolved_includes: true.
Instance Attribute Summary collapse
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Instance Method Summary collapse
-
#initialize(targets) ⇒ UnresolvedIncludesError
constructor
A new instance of UnresolvedIncludesError.
Constructor Details
#initialize(targets) ⇒ UnresolvedIncludesError
Returns a new instance of UnresolvedIncludesError.
306 307 308 309 310 311 312 313 314 |
# File 'lib/coradoc/errors.rb', line 306 def initialize(targets) @targets = targets super( "Document has #{targets.size} unresolved include directive(s): " \ "#{targets.join(', ')}. Resolve them before serializing with " \ 'Coradoc.resolve_includes(doc, base_dir: ...), or pass ' \ 'allow_unresolved_includes: true.' ) end |
Instance Attribute Details
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
304 305 306 |
# File 'lib/coradoc/errors.rb', line 304 def targets @targets end |