Exception: Saxon::ItemType::UnmappedRubyTypeError

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

Overview

Error raised when a Ruby class has no equivalent XDM type to be converted into

Instance Method Summary collapse

Constructor Details

#initialize(class_name) ⇒ UnmappedRubyTypeError

Returns a new instance of UnmappedRubyTypeError.



53
54
55
# File 'lib/saxon/item_type.rb', line 53

def initialize(class_name)
  @class_name = class_name
end

Instance Method Details

#to_sObject

error message including class name no type equivalent found for



58
59
60
# File 'lib/saxon/item_type.rb', line 58

def to_s
  "Ruby class <#{@class_name}> has no XDM type equivalent"
end