Partilhar 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.

public ref class ParentContainsErrorRecordException : SystemException
[System.Serializable]
public class ParentContainsErrorRecordException : SystemException
public class ParentContainsErrorRecordException : SystemException
[<System.Serializable>]
type ParentContainsErrorRecordException = class
    inherit SystemException
type ParentContainsErrorRecordException = class
    inherit SystemException
Public Class ParentContainsErrorRecordException
Inherits 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

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to