Exception: Arrolio::ContentError
- Defined in:
- lib/arrolio/error.rb
Overview
Raised when the content tree violates Arrolio's content contract (e.g. a Section with a non-String title, or a Paragraph with malformed InlineRuns).
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(message, node: nil) ⇒ ContentError
constructor
A new instance of ContentError.
Constructor Details
#initialize(message, node: nil) ⇒ ContentError
Returns a new instance of ContentError.
37 38 39 40 |
# File 'lib/arrolio/error.rb', line 37 def initialize(, node: nil) @node = node super() end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
35 36 37 |
# File 'lib/arrolio/error.rb', line 35 def node @node end |