System.SysUtils.Exception.Create

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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_High);
__fastcall Exception(NativeUInt Ident)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec)/* overload */;
__fastcall Exception(NativeUInt Ident, System::TVarRec const *Args, const int Args_High)/* overload */;
__fastcall Exception(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_High)/* overload */;
__fastcall Exception(const System::UnicodeString Msg, int AHelpContext);
__fastcall Exception(const System::UnicodeString Msg, System::TVarRec const *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, System::TVarRec const *Args, const int Args_High, int AHelpContext)/* overload */;
__fastcall Exception(NativeUInt Ident, System::TVarRec const *Args, const int Args_High, int AHelpContext)/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils Exception

Description

Instantiates an instance of an exception with a simple message string.

Call Create to construct an exception object with a simple message string.

Msg is the string containing the run-time error message to display in the exception dialog box. Msg can be a hard-coded string or can be a function call that returns a string.

See Also

Code Examples