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 ⇒ Object
readonly
expected superclass of query.
-
#result ⇒ Object
readonly
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.
12 13 14 15 16 |
# File 'lib/xquery/errors.rb', line 12 def initialize(result, expectation) @result = result @expectation = expectation super("Expected #{result.inspect} to be an instance of #{expectation}") end |
Instance Attribute Details
#expectation ⇒ Object (readonly)
expected superclass of query
8 9 10 |
# File 'lib/xquery/errors.rb', line 8 def expectation @expectation end |
#result ⇒ Object (readonly)
query on which constraint failed
5 6 7 |
# File 'lib/xquery/errors.rb', line 5 def result @result end |