Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICreateErrorInfo::initialize ( P6ERR  error,
const P6IID piid,
const P6CHAR pszFilename,
P6UINT32  cLine,
const P6WCHAR pwszContext,
const P6WCHAR pwszDescription 
)
pure virtual

Initializes the exception record with information about the error condition.

This method must be called successfully before any other method on any supported interface (eg. p6IErrorInfo).

Parameters
error[ in ] The P6ERR value of the error condition.
piid[ in ] A pointer to the GUID associated with the component which triggered the error condition, or NULL.
pszFilename[ in ] A pointer to a P6CHAR* string containing the name of the compilation unit the error occurred in or NULL.

You can use the P6FILEANDLINE macro to provide this argument and the cLine argument, or you can use the FILE compiler provided macro.

Parameters
cLine[ in ] The line number of the compilation unit where the error was generated.

You can use the P6FILEANDLINE macro to provide this argument and the previous pszFile argument, or you can use the LINE compiler provided macro.

Parameters
pwszContext[ in ] A P6WHCAR* string containing the name of the class in which the error occurred or NULL.
pwszDescription[ in ] A P6WHCAR* string containing the human readable description of the error, or NULL.
Returns