Data.DB.DatabaseError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DatabaseError(const Message: string; Component: TComponent = nil);

C++

extern DELPHI_PACKAGE void __fastcall DatabaseError(const System::UnicodeString Message, System::Classes::TComponent* Component = (System::Classes::TComponent*)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB Data.DB

Description

Creates and raises an EDatabaseError exception.

Call DatabaseError to raise an EDatabaseError exception, using Message as the text for the exception. If a component is provided as the second parameter, the message is prefixed by the name of the component to help in interpreting the error message. In C++, the second parameter can be NULL.

Calling DatabaseError rather than creating and raising the exception directly in code reduces the overall code size of the application.

See Also