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

Throws an exception based on the specified error and sets the step status to EventStatus.EVENTSTATUS_FAIL.

Syntax

Visual Basic (Declaration)  
Overloads Overridable Sub ThrowRunError( _
   ByVal error As RunErrors _
) 
C#  
virtual void ThrowRunError( 
   RunErrors error
)

Parameters

error
A value of the RunErrors Enumeration.

See Also