Exception: Arrolio::LayoutError
- 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
-
#page_number ⇒ Object
readonly
Returns the value of attribute page_number.
-
#template_name ⇒ Object
readonly
Returns the value of attribute template_name.
Instance Method Summary collapse
-
#initialize(message, page_number: nil, template_name: nil) ⇒ LayoutError
constructor
A new instance of LayoutError.
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(, page_number: nil, template_name: nil) @page_number = page_number @template_name = template_name super() end |
Instance Attribute Details
#page_number ⇒ Object (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_name ⇒ Object (readonly)
Returns the value of attribute template_name.
12 13 14 |
# File 'lib/arrolio/error.rb', line 12 def template_name @template_name end |