Exception: Saxon::QName::PrefixedStringWithoutNSURIError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Saxon::QName::PrefixedStringWithoutNSURIError
- Defined in:
- lib/saxon/qname.rb
Overview
Raised when an attempt is made to resolve a prefix:local-name
into a QName, and the prefix has not been bound to a namespace URI.
Instance Method Summary collapse
-
#initialize(qname_string, prefix) ⇒ PrefixedStringWithoutNSURIError
constructor
A new instance of PrefixedStringWithoutNSURIError.
-
#to_s ⇒ Object
The error message reports the unbound prefix and complete QName.
Constructor Details
#initialize(qname_string, prefix) ⇒ PrefixedStringWithoutNSURIError
Returns a new instance of PrefixedStringWithoutNSURIError.
178 179 180 |
# File 'lib/saxon/qname.rb', line 178 def initialize(qname_string, prefix) @qname_string, @prefix = qname_string, prefix end |
Instance Method Details
#to_s ⇒ Object
The error message reports the unbound prefix and complete QName
183 184 185 |
# File 'lib/saxon/qname.rb', line 183 def to_s "Namespace prefix ‘#{@prefix}’ for QName ‘#{@qname_string}’ is not bound to a URI" end |