Anzeigen: Delphi
C++
Anzeigeeinstellungen
System.SysUtils.Exception.Create
Aus XE2 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(int Ident)/* overload */; __fastcall Exception(System::PResStringRec ResStringRec)/* overload */; __fastcall Exception(int 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(int 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(int Ident, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */;
Inhaltsverzeichnis |
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| constructor | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | Exception |
Beschreibung
Instantiiert eine Instanz einer Exception mit einem einfachen Meldungs-String.
Mit Create lässt sich ein Exception-Objekt mit einem einfachen Meldungs-String erzeugen.
Msg ist der String mit der Fehlermeldung, die zur Laufzeit im Exception-Dialogfeld angezeigt werden soll. Msg kann ein festcodierter String oder ein Funktionsaufruf sein, der einen String zurückgibt.
Siehe auch
Codebeispiele