Exception: PBCore::BaseIsNotPBCoreElement

Inherits:
Error
  • Object
show all
Defined in:
lib/pbcore/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(included_module:, base:) ⇒ BaseIsNotPBCoreElement

Returns a new instance of BaseIsNotPBCoreElement.



37
38
39
# File 'lib/pbcore/errors.rb', line 37

def initialize(included_module:, base:)
  super("#{included_module} should only be included in PBCore::Element, but was included in #{base} (ancestors are: #{base.ancestors.join(', ')})")
end