System.SysUtils.Exception.Create
提供: RAD Studio API Documentation
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 */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| constructor | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | Exception |
説明
単純なメッセージ文字列を持つ例外のインスタンスを作成します。
Create メソッドを呼び出すと,単純なメッセージ文字列を持つ例外オブジェクトを作成できます。
Msg は,例外ダイアログボックスに表示される実行時エラーメッセージが入った文字列です。Msg はハードコード文字列でも,文字列を返す関数呼び出しでもかまいません。