Exception: Arrolio::LayoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/arrolio/error.rb

Overview

Raised by Engine::* when a layout pass fails (overflow that can't be resolved, broken cross-reference, missing template).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, page_number: nil, template_name: nil) ⇒ LayoutError

Returns a new instance of LayoutError.



14
15
16
17
18
# File 'lib/arrolio/error.rb', line 14

def initialize(message, page_number: nil, template_name: nil)
  @page_number = page_number
  @template_name = template_name
  super(message)
end

Instance Attribute Details

#page_numberObject (readonly)

Returns the value of attribute page_number.



12
13
14
# File 'lib/arrolio/error.rb', line 12

def page_number
  @page_number
end

#template_nameObject (readonly)

Returns the value of attribute template_name.



12
13
14
# File 'lib/arrolio/error.rb', line 12

def template_name
  @template_name
end