InvalidRunspaceStateException Class

Definition

Exception thrown when state of the runspace is different from expected state of runspace.

public class InvalidRunspaceStateException : SystemException
Inheritance
InvalidRunspaceStateException

Constructors

InvalidRunspaceStateException()

Initializes a new instance of InvalidRunspaceStateException

InvalidRunspaceStateException(String)

Initializes a new instance of InvalidRunspaceStateException with a specified error message.

InvalidRunspaceStateException(SerializationInfo, StreamingContext)

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

InvalidRunspaceStateException(String, Exception)

Initializes a new instance of the InvalidRunspaceStateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

CurrentState

Access CurrentState of the runspace.

ExpectedState

Expected state of runspace by the operation which has thrown this exception.