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