Data.SqlExpr.TSQLExceptionType
Delphi
TSQLExceptionType = (exceptConnection, exceptCommand, exceptCursor, exceptMetaData, exceptUseLast);
C++
enum DECLSPEC_DENUM TSQLExceptionType : unsigned char { exceptConnection, exceptCommand, exceptCursor, exceptMetaData, exceptUseLast };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | Data.SqlExpr.pas Data.SqlExpr.hpp |
Data.SqlExpr | Data.SqlExpr |
Description
TSQLExceptionType indicates the type of operation that leads to an ESQLException exception.
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. |