Skip to content

DatabaseErrorFmt

Raise an EDatabaseError exception with a formatted message.

Declaration

Source position: db.pas line 2515

procedure DatabaseErrorFmt(const Fmt: string; 
                          const Args: Array of const);  overload; overload;
procedure DatabaseErrorFmt(const Fmt: string; 
                          const Args: Array of const; Comp: TComponent)
                          ;  overload; overload;

Description

DatabaseErrorFmt raises an EDatabaseError exception, passing it a message made by calling #rtl.sysutils.format with the fmt and Args arguments. If Comp is specified, the name of the component is prepended to the message.

See also

Name Description
DatabaseError Raise an EDatabaseError exception.
EDatabaseError Base class for all database-related errors.