javax.xml.xquery
Class XQTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.xquery.XQException
              extended by javax.xml.xquery.XQTypeException
All Implemented Interfaces:
java.io.Serializable

public class XQTypeException
extends XQException

Author:
Michael Stark
See Also:
Serialized Form

Constructor Summary
XQTypeException(int vendorCode, javax.xml.namespace.QName name, java.lang.String message, int pos, javax.xml.namespace.QName module, javax.xml.namespace.QName function, XQItemType exp, XQItemType act)
          Constructor that takes in an QName.
XQTypeException(int vendorCode, XQItem item, java.lang.String message, int pos, javax.xml.namespace.QName module, javax.xml.namespace.QName function, XQItemType exp, XQItemType act)
          Constructor that takes in the module and function names.
XQTypeException(int vendorCode, XQItem item, java.lang.String message, int pos, XQItemType exp, XQItemType act)
          XQTypeException taking in an item and a preformatted optional message string.
 
Method Summary
 XQItemType getActualType()
          Gets the actual item type.
 XQItemType getExpectedType()
          Gets the expected item type.
 
Methods inherited from class javax.xml.xquery.XQException
getErrorCode, getErrorItem, getErrorPosition, getFunctionName, getModuleName, getNextException, getVendorCode, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XQTypeException

public XQTypeException(int vendorCode,
                       javax.xml.namespace.QName name,
                       java.lang.String message,
                       int pos,
                       javax.xml.namespace.QName module,
                       javax.xml.namespace.QName function,
                       XQItemType exp,
                       XQItemType act)
Constructor that takes in an QName.


XQTypeException

public XQTypeException(int vendorCode,
                       XQItem item,
                       java.lang.String message,
                       int pos,
                       javax.xml.namespace.QName module,
                       javax.xml.namespace.QName function,
                       XQItemType exp,
                       XQItemType act)
Constructor that takes in the module and function names.


XQTypeException

public XQTypeException(int vendorCode,
                       XQItem item,
                       java.lang.String message,
                       int pos,
                       XQItemType exp,
                       XQItemType act)
XQTypeException taking in an item and a preformatted optional message string.

Method Detail

getActualType

public XQItemType getActualType()
Gets the actual item type.


getExpectedType

public XQItemType getExpectedType()
Gets the expected item type.