Using The Error Information Object To Get Extended Error Information
Perform the following steps to use the ErrorInformation Object:
1. |
Create an instance of the ErrorInformation object using new ErrorInformation(). |
2. | Use the try catch statements in your code with COMException type. |
3. |
When an error occurs, obtain string descriptions of toolkit HRESULT values by calling the GetErrorDescription method and pass the error that was raised. For more information, refer to the Error Code property of the COMException. |