Table of Contents

Class AuthenticationError

Namespace
PnP.Core
Assembly
PnP.Core.dll

Error class for authentication errors

public class AuthenticationError : BaseError
Inheritance
AuthenticationError
Inherited Members

Constructors

AuthenticationError(ErrorType, string)

Constructs an AuthenticationError instance

public AuthenticationError(ErrorType type, string error)

Parameters

type ErrorType

Type of the error

error string

Error content as string

AuthenticationError(ErrorType, JsonElement)

Constructs an AuthenticationError instance

public AuthenticationError(ErrorType type, JsonElement error)

Parameters

type ErrorType

Type of the error

error JsonElement

Error content as JsonElement

Properties

Code

Error code

public string Code { get; }

Property Value

string

CorrelationId

Correlation id

public Guid CorrelationId { get; }

Property Value

Guid

ErrorCodes

List of returned error codes

public List<long> ErrorCodes { get; }

Property Value

List<long>

Message

Error message

public string Message { get; }

Property Value

string

TimeStamp

Time the error happened

public string TimeStamp { get; }

Property Value

string

TraceId

Trace id

public Guid TraceId { get; }

Property Value

Guid

Methods

ToString()

Outputs a AuthenticationError to a string representation

public override string ToString()

Returns

string

String representation