Welcome to the UFT Testing Extensibility API Reference > UFT Extensibility Agent library 1.3 > Interfaces > ITestable2 Interface > Methods > GetLastError Method
UFT Extensibility Agent library 1.3
GetLastError Method
Description
Returns the error message that resulted from the immediately preceding action.
Syntax
Visual Basic
Public Function GetLastError() As String
Return Type

If the last action did not result in an error, return a null string. 

It is recommended that the Testing Agent return the message in the local computer's locale.

Remarks

Usually called by UFT if the last invocation returns any HRESULT other than success.

See Also