Custom Server API References > Mercury.QTP.WPF.CustomServer Namespace > IUtilityObject Interface > IUtilityObject Interface Methods > ThrowRunError Method

Overload List

Overload Description
ThrowRunError(RunErrors) Throws an exception based on the specified error and sets the step status to EventStatus.EVENTSTATUS_FAIL.  
ThrowRunError(String) Throws an exception based on the specified error message and sets the step status to EventStatus.EVENTSTATUS_FAIL.  

Remarks

The error message is taken from the RunErrors Enumeration.

See Also