Exception: Moxml::XPathError

Inherits:
Error
  • Object
show all
Defined in:
lib/moxml/errors.rb

Overview

XPath related errors

Direct Known Subclasses

InvalidXPathError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, expression) ⇒ XPathError

Returns a new instance of XPathError.



162
163
164
165
# File 'lib/moxml/errors.rb', line 162

def initialize(message, expression)
  @expression = expression
  super("#{message} (Expression: #{expression})")
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



160
161
162
# File 'lib/moxml/errors.rb', line 160

def expression
  @expression
end