PipelineStoppedException PipelineStoppedException PipelineStoppedException Class


Indicates that the pipeline has already been stopped.

public class PipelineStoppedException : System.Management.Automation.RuntimeException
type PipelineStoppedException = class
    inherit RuntimeException
Public Class PipelineStoppedException
Inherits RuntimeException


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.


PipelineStoppedException() PipelineStoppedException() PipelineStoppedException()

Instantiates a new instance of the PipelineStoppedException class

PipelineStoppedException(SerializationInfo, StreamingContext) PipelineStoppedException(SerializationInfo, StreamingContext) PipelineStoppedException(SerializationInfo, StreamingContext)

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

PipelineStoppedException(String) PipelineStoppedException(String) PipelineStoppedException(String)

Instantiates a new instance of the PipelineStoppedException class

PipelineStoppedException(String, Exception) PipelineStoppedException(String, Exception) PipelineStoppedException(String, Exception)

Instantiates a new instance of the PipelineStoppedException class


ErrorRecord ErrorRecord ErrorRecord Inherited from RuntimeException
StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException


GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) Inherited from RuntimeException

Applies to