Windows Server AppFabric Cache raises exceptions whenever it encounters errors while executing commands issued by its calling clients. Windows Server AppFabric Cache Exceptions also provide additional details (such as error code, and so on) as part of its exception message. These exception details and error codes are used by calling clients to decide their execution path.
Note
A system should continue to work even if it encounters problems with its caching subsystem. Apart from getting data directly from the source, caching clients should also be able to handle caching related exceptions gracefully.
Windows Server AppFabric Cache uses DataCacheException
to raise exceptions. DataCacheException
exposes ErrorCode
and SubStatus
properties that provide additional information about the error.
The DataCacheException
class looks as follows:
[Serializable] public class DataCacheException : Exception, ISerializable { private int _errorCode = -1...