PSArgumentException PSArgumentException PSArgumentException Class

Definition

This is a wrapper for exception class ArgumentException which provides additional information via IContainsErrorRecord.

public class PSArgumentException : ArgumentException, System.Management.Automation.IContainsErrorRecord
type PSArgumentException = class
    inherit ArgumentException
    interface IContainsErrorRecord
Public Class PSArgumentException
Inherits ArgumentException
Implements IContainsErrorRecord
Inheritance
PSArgumentExceptionPSArgumentExceptionPSArgumentException
Implements

Remarks

Instances of this exception class are usually generated by the
Monad Engine.  It is unusual for code outside the Monad Engine
to create an instance of this class.

Constructors

PSArgumentException() PSArgumentException() PSArgumentException()

Initializes a new instance of the PSArgumentException class.

PSArgumentException(String) PSArgumentException(String) PSArgumentException(String)

Initializes a new instance of the PSArgumentException class.

PSArgumentException(SerializationInfo, StreamingContext) PSArgumentException(SerializationInfo, StreamingContext) PSArgumentException(SerializationInfo, StreamingContext)

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

PSArgumentException(String, Exception) PSArgumentException(String, Exception) PSArgumentException(String, Exception)

Initializes a new instance of the PSArgumentException class.

PSArgumentException(String, String) PSArgumentException(String, String) PSArgumentException(String, String)

Initializes a new instance of the PSArgumentException class.

Properties

ErrorRecord ErrorRecord ErrorRecord

Additional information about the error

Message Message Message

see Message

Methods

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

Serializer for ISerializable

Applies to