Table of Contents

Class IllegalOperationException

Represents the Illegal Operation error that occurs while running a TE testing project.

Inheritance
IllegalOperationException
Namespace: HP.LFT.SDK.TE
Assembly: HP.LFT.SDK.dll
Syntax
public class IllegalOperationException : GeneralReplayException, ISerializable, _Exception

Constructors

IllegalOperationException(GeneralReplayException)

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.

Declaration
public IllegalOperationException(GeneralReplayException exception)
Parameters
Type Name Description
GeneralReplayException exception

The exception that is the cause of the current exception.

IllegalOperationException(ITestObject, int, string)

Initializes a new instance of the IllegalOperationException class with the test object on which the run error occurred, a specified error message and an error code associated with this exception.

Declaration
public IllegalOperationException(ITestObject testObject, int errorCode, string message)
Parameters
Type Name Description
ITestObject testObject

The test object on which the run error occurred.

int errorCode

The error code associated with this exception.

string message

The error message that explains the reason for the exception.

IllegalOperationException(ITestObject, string)

Initializes a new instance of the IllegalOperationException class with the test object on which the run error occurred and a specified error message.

Declaration
public IllegalOperationException(ITestObject testObject, string message)
Parameters
Type Name Description
ITestObject testObject

The test object on which the run error occurred.

string message

The error message that explains the reason for the exception.

IllegalOperationException(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.

Declaration
public IllegalOperationException(ITestObject testObject, string message, Exception exception)
Parameters
Type Name Description
ITestObject testObject

The test object on which the run error occurred.

string message

The error message that explains the reason for the exception.

Exception exception

The exception that is the cause of the current exception.

IllegalOperationException(SerializationInfo, StreamingContext)

Initializes a new instance of the IllegalOperationException class with serialized data.

Declaration
protected IllegalOperationException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo that holds the serialized object data about the exception being thrown.

StreamingContext context

The StreamingContext that contains contextual information about the source or destination.

Implements

ISerializable
_Exception