class Lutaml::Model::PolymorphicError
def initialize(value, options, type)
def initialize(value, options, type) error = if options[:polymorphic].is_a?(Array) "#{value.class} not in #{options[:polymorphic]}" else "#{value.class} is not valid sub class of #{type}" end super(error) end