RedirectedException RedirectedException RedirectedException Class

Definition

Indicates that a success object was written and success-to-error ("1>&2") has been specified.

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

Remarks

The redirected object is available as TargetObject in the ErrorRecord which contains this exception.

Constructors

RedirectedException() RedirectedException() RedirectedException()

Instantiates a new instance of the RedirectedException class

RedirectedException(SerializationInfo, StreamingContext) RedirectedException(SerializationInfo, StreamingContext) RedirectedException(SerializationInfo, StreamingContext)

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

RedirectedException(String) RedirectedException(String) RedirectedException(String)

Instantiates a new instance of the RedirectedException class

RedirectedException(String, Exception) RedirectedException(String, Exception) RedirectedException(String, Exception)

Instantiates a new instance of the RedirectedException class

Properties

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

Methods

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

Applies to