Created
January 13, 2021 10:11
-
-
Save eizedev/4dc59f5562f77296c167830f413069ec to your computer and use it in GitHub Desktop.
Get all available error types from powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[appdomain]::CurrentDomain.GetAssemblies() | ForEach { | |
Try { | |
$_.GetExportedTypes() | Where { | |
$_.Fullname -match 'Exception' | |
} | |
} Catch {} | |
} | Select FullName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment