PostSharpAPI ReferencePost­Sharp.​Patterns.​CachingInvalid­Cache­Item­Exception
Open sandboxFocus

InvalidCacheItemException Class

Exception thrown by a caching back-end during cache item retrieval (e.g. when the cached data cannot be serialized by the current object model). Throwing this exception causes removal of the invalid item.

Inheritance
InvalidCacheItemException
Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class InvalidCacheItemException : CachingException

Constructors

Name Description
InvalidCacheItemException()

Initializes a new InvalidCacheItemException with the default error message.

InvalidCacheItemException(SerializationInfo, StreamingContext)

Deserialization constructor.

InvalidCacheItemException(String)

Initializes a new InvalidCacheItemException with a given error message.

InvalidCacheItemException(String, Exception)

Initializes a new InvalidCacheItemException with a given error message and inner Exception.