class XQuery::QuerySuperclassChanged

raised when superclass of query changed @attr result

query on which constraint failed

@attr [Class] expectation

expected superclass of query

Attributes

expectation[R]
result[R]

Public Class Methods

new(result, expectation) click to toggle source

@param result [Object] query on which constraint failed @param expectation [Class] expected superclass

Calls superclass method
# File lib/xquery/errors.rb, line 13
def initialize(result, expectation)
  @result = result
  @expectation = expectation
  super("Expected #{result.inspect} to be an instance of #{expectation}")
end