Table of Contents

Class BaseError

Namespace
PnP.Core
Assembly
PnP.Core.dll

Base error information

public abstract class BaseError
Inheritance
BaseError
Derived
Inherited Members

Constructors

BaseError(ErrorType)

Default base constructor/>

public BaseError(ErrorType type)

Parameters

type ErrorType

Type of the error

Properties

AdditionalData

Additional data linked to an error

public IDictionary<string, object> AdditionalData { get; }

Property Value

IDictionary<string, object>

PnPCorrelationId

Correlation for a PnP Core SDK operation

public Guid PnPCorrelationId { get; }

Property Value

Guid

Type

ErrorType of the error

public ErrorType Type { get; }

Property Value

ErrorType

Methods

AddAdditionalData(string, object)

Adds additional error data to this error as property/value pairs

protected void AddAdditionalData(string propertyName, object propertyValue)

Parameters

propertyName string

Property to add

propertyValue object

Value to add