Error Element
The Error element represents a logged trace for an error.
Attributes
Attribute | Description |
---|---|
File | The full file name to the source file where the error is reported. |
Line | The line number where the error occurred. |
ErrCode | The rrror code. |
ErrType | The type of error that occurred. This attribute should be one of the following values: WIN32, BOOL, HRESULT, or NT_STATUS. |
ErrorText | The description of the error for Microsoft Win32 and HRESULT errors. For Boolean and NTStatus errors, this text will be in the following format: ErrorText="Error 0xc0000005" |
UserText | Additional text message. |
Example
<Error File="c:\tests\unittest\main.cxx" Line="155" ErrCode="0"
ErrType="HRESULT" ErrorText="The operation completed successfully."
UserText="This should fail, and it should log" CA="32448" LA="1479820">
<RTI ID="1207879918" />
<CTX ID="1637872268" />
</Error>
See Also
Send feedback on this topic
Built on December 10, 2009