Updated: April 27, 2016
Applies To: Windows PowerShell
Describes a terminating or nonterminating error that occurred during the processing of a command.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Initializes a new instance of theclass that contains a wrapper exception that already has an error record. Introduced in Windows PowerShell 3.0.
|ErrorRecord(Exception^, String^, ErrorCategory, Object^)|
Initializes a new instance of theclass that contains the exception, error identifier, error category, and more.
Initializes a new instance of theclass that contains information read from the provided serialization information.
Gets information about the category of the error.
Gets and sets more detailed error information, such as a replacement error message.
Gets the exception that is associated with this error record.
Gets the fully qualified error identifier for this error record.
Gets information about the command that was invoked when the error occurred.
Gets the status of the pipeline when this error record was created. This property is introduced in Windows PowerShell 2.0.
Gets the script stack trace for the error. Introduced in Windows PowerShell 3.0.
Gets the object that was being processed when the error occurred.
Provides serialization functionality for the ISerializable interface.
Retrieves a string representation of the current Object::ToString().)object.(Overrides
Error records are also used by several exceptions that are thrown by the Windows PowerShell runtime.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.