Qizx 2.2 API

com.qizx.api
Class QizxException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.qizx.api.QizxException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CompilationException, DataModelException, EvaluationException

public class QizxException
extends Exception

Super-class of all exceptions of the API.

See Also:
Serialized Form

Field Summary
protected  QName errorCode
           
 
Constructor Summary
protected QizxException()
           
  QizxException(QName errorCode, String message)
          Constructs a QizxException with a message and an XQuery error code.
  QizxException(String message)
          Constructs a QizxException from a simple message.
  QizxException(String message, Throwable cause)
          Constructs a QizxException from a simple message and an exception.
 
Method Summary
 QName getErrorCode()
          Gets the error code.
 void setErrorCode(QName errorCode)
          Defines the XQuery error code.
 void setErrorCode(String errorCode)
          Defines the XQuery error code.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

protected QName errorCode
Constructor Detail

QizxException

protected QizxException()

QizxException

public QizxException(String message)
Constructs a QizxException from a simple message. The error code is undefined.

Parameters:
message - reason for the exception

QizxException

public QizxException(String message,
                     Throwable cause)
Constructs a QizxException from a simple message and an exception. The error code is undefined.

Parameters:
message - reason for the exception
cause - wrapped cause

QizxException

public QizxException(QName errorCode,
                     String message)
Constructs a QizxException with a message and an XQuery error code.

Parameters:
errorCode - the QName of the error (in principle the XQuery error namespace http://www.w3.org/2005/xqt-errors)
message - reason for the exception
Method Detail

getErrorCode

public QName getErrorCode()
Gets the error code.

Returns:
the errorCode, generally a XQuery error code.

setErrorCode

public void setErrorCode(QName errorCode)
Defines the XQuery error code. The namespace of the code is normally "http://www.w3.org/2005/xqt-errors".

Parameters:
errorCode - XQuery code such as XPTY0004

setErrorCode

public void setErrorCode(String errorCode)
Defines the XQuery error code. The implicit namespace of the code is "http://www.w3.org/2005/xqt-errors".

Parameters:
errorCode - XQuery code such as XPTY0004

© 2008 Axyana Software