System.SysUtils.Exception.Create

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

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