API:System.Threading.EAggregateException.ToString
Delphi
function ToString: string; override;
C++
virtual System::UnicodeString __fastcall ToString();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Threading.pas System.Threading.hpp |
System.Threading | EAggregateException |
Description
Returns a string containing the exception message.
System.Threading.EAggregateException.ToString inherits from System.SysUtils.Exception.ToString. All content below this line refers to System.SysUtils.Exception.ToString.
Returns a string containing the exception message.
For example, the following code prints "This is my exception" to the standard output:
myException := Exception.Create('This is my exception');
Writeln(myException.toString());
Exception* myException = new Exception("This is my exception");
std::wcout << myException->ToString().c_str();