CmdletInvocationException CmdletInvocationException CmdletInvocationException Class

Definition

Indicates that a cmdlet hit a terminating error.

public class CmdletInvocationException : System.Management.Automation.RuntimeException
type CmdletInvocationException = class
    inherit RuntimeException
Public Class CmdletInvocationException
Inherits RuntimeException
Inheritance
CmdletInvocationExceptionCmdletInvocationExceptionCmdletInvocationException
Derived

Remarks

InnerException is the error which the cmdlet hit.

Constructors

CmdletInvocationException() CmdletInvocationException() CmdletInvocationException()

Instantiates a new instance of the CmdletInvocationException class

CmdletInvocationException(SerializationInfo, StreamingContext) CmdletInvocationException(SerializationInfo, StreamingContext) CmdletInvocationException(SerializationInfo, StreamingContext)

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

CmdletInvocationException(String) CmdletInvocationException(String) CmdletInvocationException(String)

Instantiates a new instance of the CmdletInvocationException class

CmdletInvocationException(String, Exception) CmdletInvocationException(String, Exception) CmdletInvocationException(String, Exception)

Instantiates a new instance of the CmdletInvocationException class

Properties

ErrorRecord ErrorRecord ErrorRecord

The error reported by the cmdlet

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

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to