< Back

Get-GDriveError

Mon Jan 13, 2020 10:23 pm

NAME Get-GDriveError



SYNOPSIS

Get GoogleDrive Error responce





SYNTAX

Get-GDriveError [-Exception] <Exception> [<CommonParameters>]



Get-GDriveError [-Error] <ErrorRecord> [<CommonParameters>]





DESCRIPTION

Get GoogleDrive Error responce





PARAMETERS

-Error <ErrorRecord>

Error record to decode



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Exception <Exception>

Exception object to decode



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Json with error item as PSObject





NOTES





Author: Max Kozlov



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>try { Get-GDriveItemProperty -AccessToken 'error token' -id 'error id' } catch { $err = $_ }



Get-GDriveError $err











RELATED LINKS