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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe 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
messagestringThe message that describes the error.
CacheItemNotFoundException(string, Exception)
Initializes a new instance of the FeedSdkException class.
protected CacheItemNotFoundException(string message, Exception innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe 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
messagestringThe error message that explains the reason for the exception.
keystringThe key requested key
innerExceptionExceptionThe 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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
ToString()
Returns a string that represents this instance.
public override string ToString()