System.Classes.EFileStreamError.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(ResStringRec: PResStringRec; const FileName: string);

C++

__fastcall EFileStreamError(System::PResStringRec ResStringRec, const System::UnicodeString FileName);
/* Exception.CreateFmt */ inline __fastcall EFileStreamError(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_High) : EStreamError(Msg, Args, Args_High) { }
/* Exception.CreateRes */ inline __fastcall EFileStreamError(NativeUInt Ident)/* overload */ : EStreamError(Ident) { }
/* Exception.CreateRes */ inline __fastcall EFileStreamError(System::PResStringRec ResStringRec)/* overload */ : EStreamError(ResStringRec) { }
/* Exception.CreateResFmt */ inline __fastcall EFileStreamError(NativeUInt Ident, System::TVarRec const *Args, const int Args_High)/* overload */ : EStreamError(Ident, Args, Args_High) { }
/* Exception.CreateResFmt */ inline __fastcall EFileStreamError(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_High)/* overload */ : EStreamError(ResStringRec, Args, Args_High) { }
/* Exception.CreateHelp */ inline __fastcall EFileStreamError(const System::UnicodeString Msg, int AHelpContext) : EStreamError(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ inline __fastcall EFileStreamError(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_High, int AHelpContext) : EStreamError(Msg, Args, Args_High, AHelpContext) { }
/* Exception.CreateResHelp */ inline __fastcall EFileStreamError(NativeUInt Ident, int AHelpContext)/* overload */ : EStreamError(Ident, AHelpContext) { }
/* Exception.CreateResHelp */ inline __fastcall EFileStreamError(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : EStreamError(ResStringRec, AHelpContext) { }
/* Exception.CreateResFmtHelp */ inline __fastcall EFileStreamError(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_High, int AHelpContext)/* overload */ : EStreamError(ResStringRec, Args, Args_High, AHelpContext) { }
/* Exception.CreateResFmtHelp */ inline __fastcall EFileStreamError(NativeUInt Ident, System::TVarRec const *Args, const int Args_High, int AHelpContext)/* overload */ : EStreamError(Ident, Args, Args_High, AHelpContext) { }

Properties

Type Visibility Source Unit Parent
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes EFileStreamError

Description

Creates a new EFileStreamError object.

Create instantiates an exception object with a simple message string. Use the throw keyword with the constructor. For example,



throw EFileStreamError ("My error message");



Msg is the runtime error message that appears in the exception dialog box.

Args is an array of constants containing values to format according to format specifiers in Msg.

Args_Size is the index of the last constant in Args (one less than the number of entries).

AHelpContext is an integer that specifies the context-sensitive Help ID for the exception.

Ident is the unique ID of the string resource for the error message as specified in the RES file. If Ident is not a valid resource ID, the constructor creates an empty message string for the exception.

ResStringRec is a struct that describes a resourced string by giving its module and resource ID. It is used primarily with Delphi resourcestring values.