Get-PnPException

Returns the last exception that occurred

Syntax

Get-PnPException
   [-All [<SwitchParameter>]]

Description

Returns the last exception which can be used while debugging PnP Cmdlets

Examples

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

Get-PnPException

Returns the last exception

------------------EXAMPLE 2------------------

Get-PnPException -All

Returns all exceptions that occurred

Parameters

-All

Show all exceptions

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False