API:System.Threading.EAggregateException.ToString
Delphi
function ToString: string; override;
C++
virtual System::UnicodeString __fastcall ToString();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Threading.pas System.Threading.hpp |
System.Threading | EAggregateException |
説明
例外メッセージを保有する文字列を返します。
System.Threading.EAggregateException.ToString は System.SysUtils.Exception.ToString を継承しています。以下の内容はすべて System.SysUtils.Exception.ToString を参照しています。
例外メッセージを保有する文字列を返します。
たとえば、次のコードは、「This is my exception」を標準出力に出します:
myException := Exception.Create('This is my exception');
Writeln(myException.toString());
Exception* myException = new Exception("This is my exception");
std::wcout << myException->ToString().c_str();