error Method
Receives notification of a recoverable error.
[Visual Basic]
Impementation Syntax
Sub error(oLocator As IVBSAXLocator, strError As String,_
nErrorCode As Long)
Parameters
- oLocator
- The Locator object, which contains line and column numbers of the error. SystemID and PublicID may be unavailable for particular data sources, such as character buffer.
- strError
- The error information.
- nErrorCode
- The error code.
[C/C++]
Syntax
HRESULT error(
[in] ISAXLocator * pLocator,
[in] const wchar_t * pwchErrorMessage
[in] HRESULT hrErrorCode);
Parameters
- pLocator [in]
- The Locator object, which contains line and column numbers of the error. SystemID and PublicID may be unavailable for particular data sources, such as character buffer.
- pwchErrorMessage [in]
- The error information.
- hrErrorCode [in]
- The error code identifying the reason for the error.
Return Values
- S_OK
- The value returned when the error is handled and parsing may proceed.
- Other
- The value returned if parsing should be aborted.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button
in the upper-left corner of the page.
See Also
errorHandler Property | putErrorHandler Method | ISAXLocator Interface
Applies to: ISAXErrorHandler/IVBSAXErrorHandler Interface