PipelineStoppedException Class

Definition

Indicates that the pipeline has already been stopped.

public class PipelineStoppedException : System.Management.Automation.RuntimeException
Inheritance
PipelineStoppedException

Inherited Members

System.Management.Automation.RuntimeException

Remarks

When reported as the result of a command, PipelineStoppedException indicates that the command was stopped asynchronously, either by the user hitting CTRL-C, or by a call to Stop().

        When a cmdlet or provider sees this exception thrown from a Monad API such as
            WriteObject(object)
        this means that the command was already stopped.  The cmdlet or provider
        should clean up and return.
        Catching this exception is optional; if the cmdlet or providers chooses not to
        handle PipelineStoppedException and instead allow it to propagate to the
        Monad Engine's call to ProcessRecord, the Monad Engine will handle it properly.

Constructors

PipelineStoppedException()

Instantiates a new instance of the PipelineStoppedException class

PipelineStoppedException(String)

Instantiates a new instance of the PipelineStoppedException class

PipelineStoppedException(SerializationInfo, StreamingContext)

Initializes a new instance of the PipelineStoppedException class using data serialized via ISerializable

PipelineStoppedException(String, Exception)

Instantiates a new instance of the PipelineStoppedException class