Class: Lutaml::Model::TypeOnlyMappingError

Inherits:
Error
  • Object
show all
Defined in:
lib/lutaml/model/error/type_only_mapping_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ TypeOnlyMappingError

Returns a new instance of TypeOnlyMappingError.



4
5
6
7
# File 'lib/lutaml/model/error/type_only_mapping_error.rb', line 4

def initialize(model)
  super("#{model} is a type-only model (no element declared), " \
        "it can only be used as an embedded type through a parent model.")
end