System.SysUtils.Exception.Create
De RAD Studio API Documentation
Delphi
constructor Create(const Msg: string);
C++
__fastcall Exception(const System::UnicodeString Msg); __fastcall Exception(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size); __fastcall Exception(NativeUInt Ident)/* overload */; __fastcall Exception(System::PResStringRec ResStringRec)/* overload */; __fastcall Exception(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size)/* overload */; __fastcall Exception(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size)/* overload */; __fastcall Exception(const System::UnicodeString Msg, int AHelpContext); __fastcall Exception(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext); __fastcall Exception(NativeUInt Ident, int AHelpContext)/* overload */; __fastcall Exception(System::PResStringRec ResStringRec, int AHelpContext)/* overload */; __fastcall Exception(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */; __fastcall Exception(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size, 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.