Exception: Motion::MultipleRootsError

Inherits:
ComponentRenderingError show all
Defined in:
lib/motion/errors.rb

Instance Attribute Summary

Attributes inherited from ComponentError

#component

Instance Method Summary collapse

Constructor Details

#initialize(component) ⇒ MultipleRootsError

Returns a new instance of MultipleRootsError.



48
49
50
51
52
53
54
55
56
57
# File 'lib/motion/errors.rb', line 48

def initialize(component)
  super(
    component,
    "The template for #{component.class} can only have one root " \
    "element.\n" \
    "\n" \
    "Hint: Wrap all elements in a single element, such as `<div>` or " \
    "`<section>`."
  )
end