Exception: OdfCore::Error::NotAllowedAttribute

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

Instance Method Summary collapse

Constructor Details

#initialize(parent_element_class, attribute_name) ⇒ NotAllowedAttribute

Returns a new instance of NotAllowedAttribute.



4
5
6
7
8
# File 'lib/odf_core/error/not_allowed_attribute.rb', line 4

def initialize(parent_element_class, attribute_name)
  message = "`#{attribute_name}` is not a valid attribute for `#{parent_element_class}`"

  super(message)
end