The GetExecutionErrorInfo method returns details about execution result failure if one occurs.
Step Object |
object.GetExecutionErrorInfo(
pErrorCode,
[pbstrSource],
[pbstrDescription],
[pbstrHelpFile],
[pHelpContext],
[pbstrIDofInterfaceWithError])
Part | Description |
---|---|
Step | Expression that evaluates to an object in the Applies To list |
pErrorCode | Error code of the failure |
pbstrSource | Source of error |
pbstrDescription | Description property of the error |
pbstrHelpFile | Help file name |
pHelpContext | Help context ID |
pbstrIDOfInterface WithError |
ID of the interface returning the error |
Step object failure is separate from Package object failure. Therefore, error information for each step is unavailable from the COM IErrorInfo object or the Visual Basic Err object.
HRESULT GetExecutionErrorInfo(long *pErrorCode,
BSTR *pbstrSource,
BSTR *pbstrDescription,
BSTR *pbstrHelpFile,
long *pHelpContext,
BSTR *pbstrIDofInterfaceWithError);