API:System.SysUtils.Exception.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

constructor Create(const Msg: string);

C++

__fastcall Exception(const System::UnicodeString Msg);
__fastcall Exception(const System::UnicodeString Msg, const System::TVarRec *Args, const int Args_High);
__fastcall Exception(NativeUInt Ident)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec)/* overload */;
__fastcall Exception(NativeUInt Ident, const System::TVarRec *Args, const int Args_High)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, const System::TVarRec *Args, const int Args_High)/* overload */;
__fastcall Exception(const System::UnicodeString Msg, int AHelpContext);
__fastcall Exception(const System::UnicodeString Msg, const System::TVarRec *Args, const int Args_High, int AHelpContext);
__fastcall Exception(NativeUInt Ident, int AHelpContext)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, int AHelpContext)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, const System::TVarRec *Args, const int Args_High, int AHelpContext)/* overload */;
__fastcall Exception(NativeUInt Ident, const System::TVarRec *Args, const int Args_High, int AHelpContext)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
constructor public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils Exception

Description

Construit un objet et initialise ses données avant la première utilisation de l'objet.

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

Construit un objet et initialise ses données avant la première utilisation de l'objet.

Create construit un objet. Le rôle, la taille et le comportement des objets varient beaucoup. Le constructeur Create défini par TObject alloue de la mémoire mais n'initialise pas les données.

Les objets descendants définissent généralement un constructeur qui crée le type particulier d'objet et initialise ses données.

Remarque :  Si une exception provoque la sortie d'un constructeur, le destructeur de l'objet est appelé pour libérer l'instance partiellement créée.

Voir aussi