Exception: OdfCore::Error::NotAllowedElement
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OdfCore::Error::NotAllowedElement
- Defined in:
- lib/odf_core/error/not_allowed_element.rb
Instance Method Summary collapse
-
#initialize(parent_element_class, child_element_class) ⇒ NotAllowedElement
constructor
A new instance of NotAllowedElement.
Constructor Details
#initialize(parent_element_class, child_element_class) ⇒ NotAllowedElement
Returns a new instance of NotAllowedElement.
4 5 6 7 8 |
# File 'lib/odf_core/error/not_allowed_element.rb', line 4 def initialize(parent_element_class, child_element_class) = "`#{child_element_class}` is not a valid child for `#{parent_element_class}`" super() end |