Exception: Motion::BlockNotAllowedError
- Inherits:
-
ComponentRenderingError
- Object
- StandardError
- Error
- ComponentError
- ComponentRenderingError
- Motion::BlockNotAllowedError
- Defined in:
- lib/motion/errors.rb
Instance Attribute Summary
Attributes inherited from ComponentError
Instance Method Summary collapse
-
#initialize(component) ⇒ BlockNotAllowedError
constructor
A new instance of BlockNotAllowedError.
Constructor Details
#initialize(component) ⇒ BlockNotAllowedError
Returns a new instance of BlockNotAllowedError.
37 38 39 40 41 42 43 44 |
# File 'lib/motion/errors.rb', line 37 def initialize(component) super( component, "Motion does not support rendering with a block.\n" \ "\n" \ "Hint: Try wrapping a plain component with a motion component." ) end |