Skip to content

Instantly share code, notes, and snippets.

@eizedev
Created January 13, 2021 10:11
Show Gist options
  • Save eizedev/4dc59f5562f77296c167830f413069ec to your computer and use it in GitHub Desktop.
Save eizedev/4dc59f5562f77296c167830f413069ec to your computer and use it in GitHub Desktop.
Get all available error types from powershell
[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