Skip to content

TokenNotProvidedException

Namespace: SlottyMedia.Backend.Exceptions.auth

Exception to handle missing Access- and RefreshToken f.e. when handling Sessions

public class TokenNotProvidedException : SlottyMedia.LoggingProvider.BaseException`1[[SlottyMedia.Backend.Exceptions.auth.TokenNotProvidedException, SlottyMedia, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Runtime.Serialization.ISerializable

Inheritance ObjectException → BaseException<TokenNotProvidedException> → TokenNotProvidedException
Implements ISerializable

Properties

TargetSite

public MethodBase TargetSite { get; }

Property Value

MethodBase

Message

public string Message { get; }

Property Value

String

Data

public IDictionary Data { get; }

Property Value

IDictionary

InnerException

public Exception InnerException { get; }

Property Value

Exception

public string HelpLink { get; set; }

Property Value

String

Source

public string Source { get; set; }

Property Value

String

HResult

public int HResult { get; set; }

Property Value

Int32

StackTrace

public string StackTrace { get; }

Property Value

String

Constructors

TokenNotProvidedException(Boolean, Boolean)

Initializes a TokenNotProvidedException. It als implements an inner exception showing which token is missin

public TokenNotProvidedException(bool accessTokenProvided, bool refreshTokenProvided)

Parameters

accessTokenProvided Boolean
Boolean indicating the existence of an AccessToken

refreshTokenProvided Boolean
Boolean indicating the existence of a RefreshToken