Exception: Motion::MultipleRootsError
- Inherits:
-
ComponentRenderingError
- Object
- StandardError
- Error
- ComponentError
- ComponentRenderingError
- Motion::MultipleRootsError
- Defined in:
- lib/motion/errors.rb
Instance Attribute Summary
Attributes inherited from ComponentError
Instance Method Summary collapse
-
#initialize(component) ⇒ MultipleRootsError
constructor
A new instance of MultipleRootsError.
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 |