Exception: OdfCore::Error::NotAllowedElement

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/odf_core/error/not_allowed_element.rb

Instance Method Summary collapse

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)
  message = "`#{child_element_class}` is not a valid child for `#{parent_element_class}`"

  super(message)
end