System.SysUtils.Exception.ToString

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString();

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils Exception


説明

例外メッセージを保有する文字列を返します。

たとえば、次のコードは、「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();