Custom Server API References > Mercury.QTP.Slv.CustomServer Namespace > IUtilityObject Interface > Methods > ThrowRunError Method > ThrowRunError(String) Method
Throws an exception based on the specified error message and sets the step status to EventStatus.EVENTSTATUS_FAIL.

Syntax

Visual Basic (Declaration) 
Overloads Overridable Sub ThrowRunError( _
   ByVal Message As String _
) 
C# 
virtual void ThrowRunError( 
   string Message
)

Parameters

Message
The error message.

See Also