RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SqlExpr.TSQLExceptionType Enumeration

TSQLExceptionType indicates the type of operation that leads to an ESQLException exception.

Pascal
TSQLExceptionType = (
  exceptConnection,
  exceptCommand,
  exceptCursor,
  exceptMetaData,
  exceptUseLast
);
C++
enum TSQLExceptionType {
  exceptConnection,
  exceptCommand,
  exceptCursor,
  exceptMetaData,
  exceptUseLast
};

SqlExpr

ESQLException objects use TSQLExceptionType to identify the dbExpress object from which an error code originated. By identifying the underlying dbExpress object, ESQLException identifies that object's interface, which it then uses to obtain an error message. 

TSQLExceptionType includes the following values:

Value 
Description 
exceptConnection  
Error arose when establishing a connection to the database server, obtaining an interface for sending a command, fetching server metadata, or controlling a transaction.  
exceptCommand  
Error occurred while preparing or executing an SQL command.  
exceptCursor  
Error occurred while fetching data from a dbExpress cursor.  
exceptMetaData  
Error occurred while trying to fetch metadata (schema information).  
exceptUseLast  
The error is cached by the TSQLConnection component.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!