RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DB.DatabaseError Function

Creates and raises an EDatabaseError exception.

Pascal
procedure DatabaseError(const Message: WideString; Component: TComponent = nil);
C++
DatabaseError(const BSTR Message, TComponent * Component = nil);

DB

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. 

 

DbiError 

DatabaseErrorFmt

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