Exception: XQuery::QuerySuperclassChanged
- Inherits:
-
StandardError
- Object
- StandardError
- XQuery::QuerySuperclassChanged
- Defined in:
- lib/xquery/errors.rb
Overview
raised when superclass of query changed
Instance Attribute Summary collapse
-
#expectation ⇒ Class
expected superclass of query.
-
#result ⇒ Object
query on which constraint failed.
Instance Method Summary collapse
-
#initialize(result, expectation) ⇒ QuerySuperclassChanged
constructor
A new instance of QuerySuperclassChanged.
Constructor Details
#initialize(result, expectation) ⇒ QuerySuperclassChanged
Returns a new instance of QuerySuperclassChanged.
13 14 15 16 17 |
# 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 |
Instance Attribute Details
#expectation ⇒ Class
expected superclass of query
7 8 9 |
# File 'lib/xquery/errors.rb', line 7 def expectation @expectation end |
#result ⇒ Object
query on which constraint failed
7 8 9 |
# File 'lib/xquery/errors.rb', line 7 def result @result end |