Index

DKQueryException

Purpose:

DKQueryException is a specialized version of DKException that represents an error encountered during query processing. It provides information on the location (position within the query string) of the error. Positions are the number of characters from the start of the query string, and the first position is 1.

Class summary:

 class DKEXPORT DKQueryException : public DKException
 {
  public:
     long leftPosition();
     long rightPosition();
     long reason();
     DKString queryString(); 
};

Members:

Member functions

leftPosition()
Returns the left (start) position of the error in the query. long leftPosition();

rightPosition()
Returns the right (end) position of the error in the query. long rightPosition();

reason()
Returns a specific reason (semantic error) for the exception. long reason();

queryString()
Returns the query string being processed. DKString queryString();

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.