RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Exception.Message Property

Message contains the text string to display in the exception dialog box when the exception is raised.

Pascal
property Message: string;
C++
__property AnsiString Message;

Message stores the error-message string to display when the exception is raised. All Exception constructors expect a string parameter to store in Message. Message text can be hard-coded as a parameter to an Exception constructor, created as dynamic parameter, or loaded from a resource file as a static or dynamically formatted parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!