Class: Lutaml::Model::UnresolvableTypeError

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

Overview

Error raised when an XSD type reference cannot be resolved

This error occurs during XSD generation when:

  • A custom xsd_type value is used but the type is not defined

  • A type reference cannot be found in the model hierarchy

  • A type is neither a W3C built-in nor a custom LutaML type

Examples:

class MyType < Lutaml::Model::Type::String
  def self.xsd_type
    "UndefinedType"  # Not xs: prefixed, not defined anywhere
  end
end

# Will raise UnresolvableTypeError during XSD generation

Instance Method Summary collapse

Constructor Details

#initialize(message = "XSD type cannot be resolved") ⇒ UnresolvableTypeError

Initialize the error with a descriptive message

Parameters:

  • message (String) (defaults to: "XSD type cannot be resolved")

    The error message describing the unresolvable type



22
23
24
# File 'lib/lutaml/model/error/unresolvable_type_error.rb', line 22

def initialize(message = "XSD type cannot be resolved")
  super
end