Table of Contents

Class CacheItemNotFoundException

Namespace
Sportradar.OddsFeed.SDK.Common.Exceptions
Assembly
Sportradar.OddsFeed.SDK.dll

An exception thrown by the SDK cache components when the requested key was not found in the cache

[Serializable]
public class CacheItemNotFoundException : FeedSdkException, ISerializable
Inheritance
CacheItemNotFoundException
Implements
Inherited Members

Constructors

CacheItemNotFoundException()

Initializes a new instance of the CacheItemNotFoundException class.

public CacheItemNotFoundException()

CacheItemNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the CacheItemNotFoundException class.

public CacheItemNotFoundException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

CacheItemNotFoundException(string)

Initializes a new instance of the FeedSdkException class with a specified error message.

protected CacheItemNotFoundException(string message)

Parameters

message string

The message that describes the error.

CacheItemNotFoundException(string, Exception)

Initializes a new instance of the FeedSdkException class.

protected CacheItemNotFoundException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

CacheItemNotFoundException(string, string, Exception)

Initializes a new instance of the CacheItemNotFoundException class.

public CacheItemNotFoundException(string message, string key, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

key string

The key requested key

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

Key

Gets the key requested key

public string Key { get; }

Property Value

string

The key.

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

See Also