Exception: Saxon::ItemType::UnmappedXSDTypeNameError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/saxon/item_type.rb

Overview

Error raise when an attempt to reify an xs:* type string is made, but the type string doesn’t match any of the built-in xs:* types

Instance Method Summary collapse

Constructor Details

#initialize(type_str) ⇒ UnmappedXSDTypeNameError

Returns a new instance of UnmappedXSDTypeNameError.



67
68
69
# File 'lib/saxon/item_type.rb', line 67

def initialize(type_str)
  @type_str = type_str
end

Instance Method Details

#to_sObject

error message including type string with no matching built-in type



72
73
74
# File 'lib/saxon/item_type.rb', line 72

def to_s
  "'#{@type_str}' is not recognised as an XSD built-in type"
end