Share via


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.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

ISAXErrorHandler Interface

See Also

errorHandler Property (Visual Basic)
putErrorHandler Method (C-C++)
ISAXLocator Interface