Skip to content

ESQLDatabaseError

SQL database error class.

Declaration

Source position: sqldb.pp line 123

type

  ESQLDatabaseError = class(EDatabaseError)
  public
    ErrorCode: Integer;
    SQLState: string;
    constructor CreateFmt; overload;
  end;

Description

ESQLDatabaseError is raised by SQLDB routines if the underlying engine raises an error. The error code returned by the engine is contained in ESQLDatabaseError.ErrorCode, and an Ansi SQL compliant SQL state can be passed in ESQLDatabaseError.SQLState

Methods

Member Visibility Description
CreateFmt public Create a new instance of ESQLDatabaseError.
See all Methods

Fieldss

Member Visibility Description
ErrorCode public SQL engine error code.
SQLState public ANSI SQL error state.
See all Fieldss

See also

Name Description
db.EDatabaseError Base class for all database-related errors.
ESQLDatabaseError.SQLState ANSI SQL error state.
ESQLDatabaseError.ErrorCode SQL engine error code.