PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching Namespace / Invalid­Cache­Item­Exception Class

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 Hierarchy

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: (
public class InvalidCacheItemException : CachingException

The InvalidCacheItemException type exposes the following members.

Public methodInvalidCacheItemException()
Initializes a new InvalidCacheItemException with the default error message.
Public methodInvalidCacheItemException(String)
Initializes a new InvalidCacheItemException with a given error message.
Protected methodInvalidCacheItemException(SerializationInfo, StreamingContext)
Deserialization constructor.
Public methodInvalidCacheItemException(String, Exception)
Initializes a new InvalidCacheItemException with a given error message and inner Exception.
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also