IllegalOperationException Constructor(ITestObject,String,Exception)
Initializes a new instance of the IllegalOperationException class with the test object on which the run error occurred, a specified error message and a reference to the inner exception that is the cause of this exception.

C# Syntax

public IllegalOperationException( 
   ITestObject testObject,
   string message,
   Exception exception
)

Parameters

testObject
The test object on which the run error occurred.
message
The error message that explains the reason for the exception.
exception
The exception that is the cause of the current exception.