Where I can find the list of EDOMParseError.ErrorCode values?
I can't find it in Delphi source or in MSDN.
For example, if I set XMLDocument.FileName to incorrect url, I've got
Error code: -2146697210
Reason: System error: -2146697210
Where this codes are defined?
When using MSXML as the DOM provider for
TXMLDocument, theEDOMParseError.ErrorCodevalue is a COMHRESULTvalue (MSXML is implemented as COM objects). There is no single source that documents all possibleHRESULTvalues. Different modules are allowed to define their own customHRESULTvalues.In this case, -2146697210 (hex 0x800C0006) is
INET_E_OBJECT_NOT_FOUND(The object was not found):This translates to an
HRESULTdefined via theMAKE_HRESULT()macro with a severity ofSEVERITY_ERROR, a facility ofFACILITY_INTERNET, and an error code of 6:This particular
HESULTvalue is documented in URL Moniker Error Codes. AllHRESULTvalues with a facility ofFACILITY_INTERNETbelong to the WinInet library, which includes the UrlMon module. MSXML uses WinInet internally to download remote content.