PostSharp6.4/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
System.Object
  System.Exception
    PostSharp.Patterns.Caching.CachingException
      PostSharp.Patterns.Caching.InvalidCacheItemException

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
[SerializableAttribute]
public class InvalidCacheItemException : CachingException
Constructors
  NameDescription
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.
See Also