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.
Implements
Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class InvalidCacheItemException : CachingException, ISerializableConstructors
| 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. |