Hauptmenü öffnen

RAD Studio API Documentation β

System.SysUtils.Exception.ToString

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString();

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils Exception


Beschreibung

Gibt den String mit der Ausnahme-Meldung zurück.

Der folgende Code druckt z. B. "Das ist meine Exception" auf der Standardausgabe aus:

myException := Exception.Create('This is my exception');
Writeln(myException.toString());
Exception* myException = new Exception("This is my exception");
std::wcout << myException->ToString().c_str();