Table of Contents

Enum ErrorType

Namespace
PnP.Core
Assembly
PnP.Core.dll

List of possible errors that can be thrown

public enum ErrorType

Fields

AzureADError = 3

Authentication call to Azure AD failed

CollectionNotLoaded = 8

Collection needs to be loaded once before you can use the paging methods for paged data retrieval

ConfigurationError = 12

There's an issue in the provided configuration data

CsomServiceError = 2

CSOM request returned an error

GraphBetaNotAllowed = 6

Making a Graph Beta call is not allowed. See usage docs to learn more

GraphServiceError = 0

Graph service request returned an error

InstanceWasDeleted = 10

This model instance was deleted, you can't use it anymore

InvalidParameters = 13

Invalid parameters are sent it for a request

LinqError = 11

Something went wrong with issuing a linq query

MissingAddApiHandler = 4

Adding an item to Microsoft 365 using 'AddAsync' requires that the added model class has an AddApiHandler configured. See contribution docs to learn more

ModelMetadataIncorrect = 5

There's incomplete model metadata configured. See contribution docs to learn more.

OfflineDataError = 17

There's an issue with the available offline test data

PropertyNotLoaded = 9

The property you want to use was not yet loaded, first request it before using it

SharePointRestServiceError = 1

SharePoint REST request returned an error

TeamsAsyncOperationError = 18

Something went wrong when doing an Teams async operation

TooManyBatchRetries = 20

Too many retries of a request in a Graph batch happened

TooManyRetries = 19

Too many retries of an http request happened

UnexpectedMappingType = 16

The payload to map to object has an unexpected type

UnresolvedTokens = 14

The API call still contains unresolved tokens

Unsupported = 7

Unsupported action

UnsupportedViaBatch = 15

The requests in this batch are not vald