Exception: Arrolio::ContentError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(message, node: nil)
  @node = node
  super(message)
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



35
36
37
# File 'lib/arrolio/error.rb', line 35

def node
  @node
end