Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcin Otorowski marcinotorowski

View GitHub Profile
@marcinotorowski
marcinotorowski / Get-ActualError.ps1
Created Jan 24, 2020
A simple PowerShell class which converts HRESULT into a human-friendly error
View Get-ActualError.ps1
class ActualError {
[int]$HResult;
[string]$HResultHex;
[string]$HResultBin;
[string]$Facility;
[int]$FacilityCode;
[int]$ErrorCode;
[bool]$IsFailure;
[string]$Message;
[bool]$IsCustom;