System.SysUtils.Exception.Create
Delphi
constructor Create(const Msg: string);
C++
__fastcall Exception(const System::UnicodeString Msg);
__fastcall Exception(const System::UnicodeString Msg, const System::TVarRec *Args, const System::NativeInt Args_High);
__fastcall Exception(System::NativeUInt Ident)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec)/* overload */;
__fastcall Exception(System::NativeUInt Ident, const System::TVarRec *Args, const System::NativeInt Args_High)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, const System::TVarRec *Args, const System::NativeInt Args_High)/* overload */;
__fastcall Exception(const System::UnicodeString Msg, int AHelpContext);
__fastcall Exception(const System::UnicodeString Msg, const System::TVarRec *Args, const System::NativeInt Args_High, int AHelpContext);
__fastcall Exception(System::NativeUInt Ident, int AHelpContext)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, int AHelpContext)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, const System::TVarRec *Args, const System::NativeInt Args_High, int AHelpContext)/* overload */;
__fastcall Exception(System::NativeUInt Ident, const System::TVarRec *Args, const System::NativeInt 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
Instancie une instance d'une exception avec une simple chaîne de message.
Appelez Create pour construire un objet exception avec une simple chaîne de message.
Msg représente la chaîne contenant le message d'erreur d'exécution à afficher dans la boîte de dialogue des exceptions. Msg peut être une chaîne codée en dur ou un appel de fonction renvoyant une chaîne.