System.Threading.EAggregateException.ToString

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString();

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Threading.pas
System.Threading.hpp
System.Threading EAggregateException

Description

Renvoie une chaîne contenant le message d'exception.

System.Threading.EAggregateException.ToString hérite de System.SysUtils.Exception.ToString. Tout le contenu en-dessous de cette ligne se réfère à System.SysUtils.Exception.ToString.

Renvoie une chaîne contenant le message d'exception.

Par exemple, le code suivant imprime "Ceci est mon exception" sur la sortie standard :

myException := Exception.Create('Ceci est mon exception');
Writeln(myException.toString());
Exception* myException = new Exception("Ceci est mon exception");
std::wcout << myException->ToString().c_str();