Creates and raises an EDatabaseError exception.
procedure DatabaseError(const Message: string; Component: TComponent = nil);
DatabaseError(const AnsiString Message, TComponent * Component = nil);
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.
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|