Wednesday, 9 September 2015

arcgis engine - Is there a way to get a good human readable error from a COM error in arcEngine?


I'm trying to perform the following operation:


 IPropertySet addressProperties = reverseGeocoding.ReverseGeocode(point, false);


And I get this error: Exception from HRESULT: 0x80040217


Is there some function to get a human readable form of this error?



Answer



Often you can use the ISupportErrorInfo interface and GetErrorInfo system call in conjunction; many classes implement this to provide human-readable exception data.


Also, some common HRESULT codes for geocoding.


No comments:

Post a Comment