-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add Type member to Exceptions containing type of exception for Get-Error
#11076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Type member to Exceptions containing type of exception for Get-Error
#11076
Conversation
...stem.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Show resolved
Hide resolved
|
@PoshChan Please remind me in 1 hour |
...stem.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Show resolved
Hide resolved
|
@TravisEz13, this is the reminder you requested 1 hour ago |
|
@PoshChan Please remind me in 1 hour |
|
@TravisEz13, this is the reminder you requested 1 hour ago |
|
changed property name from |
...stem.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Show resolved
Hide resolved
ExceptionType member to Exceptions for Get-ErrorType member to Exceptions containing type of exception for Get-Error
...stem.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Show resolved
Hide resolved
|
@PoshChan please retry windows |
|
CodeFactor issue is by-design |
|
@SteveL-MSFT, successfully started retry of |
|
🎉 Handy links: |
PR Summary
For
Get-Errorcmdlet, if the object (or nested object) is an Exception, we add anExceptionTypeproperty that has the full type name. The Exception type is useful information and this change doesn't require the user to explore the error object to get it.Example:
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.