Exception: Saxon::XPath::MissingVariableNamespaceError

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

Overview

Raised when an attempt to declare a variable is made using a string for the qname with a namespace prefix that has not been declared in the context yet

Instance Method Summary collapse

Constructor Details

#initialize(variable_name, prefix) ⇒ MissingVariableNamespaceError

Returns a new instance of MissingVariableNamespaceError.



10
11
12
# File 'lib/saxon/xpath/static_context.rb', line 10

def initialize(variable_name, prefix)
  @variable_name, @prefix = variable_name, prefix
end

Instance Method Details

#to_sObject

error message reports which unbound prefix is a problem, and how it was used



15
16
17
# File 'lib/saxon/xpath/static_context.rb', line 15

def to_s
  "Namespace prefix ‘#{@prefix}’ for variable name ‘#{@variable_name}’ is not bound to a URI"
end