CmdletInvocationException Class

Definition

Indicates that a cmdlet hit a terminating error.

public class CmdletInvocationException : System.Management.Automation.RuntimeException
Inheritance
CmdletInvocationException
Derived

Inherited Members

System.Management.Automation.RuntimeException

Remarks

InnerException is the error which the cmdlet hit.

Constructors

CmdletInvocationException()

Instantiates a new instance of the CmdletInvocationException class

CmdletInvocationException(String)

Instantiates a new instance of the CmdletInvocationException class

CmdletInvocationException(SerializationInfo, StreamingContext)

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

CmdletInvocationException(String, Exception)

Instantiates a new instance of the CmdletInvocationException class

Properties

ErrorRecord

The error reported by the cmdlet

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable