API: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

Erzeugt ein Objekt und initialisert dessen Daten.

System.SysUtils.Exception.Create erbt von System.TObject.Create. Der folgende Inhalt bezieht sich auf System.TObject.Create.

Erzeugt ein Objekt und initialisert dessen Daten.

Create erstellt ein Objekt. Der Zweck, die Größe und das Verhalten von Objekten ist sehr unterschiedlich. Der von TObject definierte Konstruktor Create weist Speicher zu, initialisiert aber keine Daten.

Abgeleitete Objekte definieren normalerweise einen Konstruktor, der bei der Erzeugung eines bestimmten Objekttyps die Daten in geeigneter Weise initialisiert.

Anmerkung:  Wenn ein Konstruktor eine Exception nicht behandelt, wird der Destruktor des Objekts aufgerufen, um die fehlerhafte Instanz zu beseitigen.

Siehe auch