Lire en anglais

Partager via


ParentContainsErrorRecordException Class

Definition

ParentContainsErrorRecordException is the exception contained by the ErrorRecord which is associated with a PowerShell engine custom exception through the IContainsErrorRecord interface.

C++
public ref class ParentContainsErrorRecordException : SystemException
Inheritance
ParentContainsErrorRecordException
Attributes

Remarks

We use this exception class so that there is not a recursive "containment" relationship between the PowerShell engine exception and its ErrorRecord.

Constructors

ParentContainsErrorRecordException()

Instantiates a new instance of the ParentContainsErrorRecordException class.

ParentContainsErrorRecordException(Exception)

Instantiates a new instance of the ParentContainsErrorRecordException class. Note that this sets the Message and not the InnerException.

ParentContainsErrorRecordException(SerializationInfo, StreamingContext)
Obsolete.

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

ParentContainsErrorRecordException(String, Exception)

Instantiates a new instance of the ParentContainsErrorRecordException class.

ParentContainsErrorRecordException(String)

Instantiates a new instance of the ParentContainsErrorRecordException class.

Properties

Message

Gets the message for the exception.

Methods

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0