Class: Lutaml::Model::TypeOnlyMappingError
- Defined in:
- lib/lutaml/model/error/type_only_mapping_error.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ TypeOnlyMappingError
constructor
A new instance of TypeOnlyMappingError.
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 |