ErrorDetails Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Provides additional error information for an error record, such as a more detailed replacement error message.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
System.Management.Automation Namespace
Windows PowerShell SDK
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
The information provided by the ErrorDetails object is accessed through the ErrorRecord.ErrorDetails property. Cmdlets can use this detailed information when they need to display a more specific error message than the exception message contained in an exception, without having to create a new exception or define a new exception class. Note that the exception message is a read-only property.
For more information about error records, see Windows PowerShell Error Records.
The ErrorDetails class is used only by the Windows PowerShell runtime. There are no established scenarios for deriving from this class.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewReference
ErrorDetails MembersSystem.Management.Automation Namespace
Other Resources
Windows PowerShell Error RecordsWindows PowerShell SDK
Send comments about this topic to Microsoft.