org.springframework.cache.interceptor

## 类 SimpleCacheErrorHandler

- java.lang.Object
- - org.springframework.cache.interceptor.SimpleCacheErrorHandler

- 所有已实现的接口:
    CacheErrorHandler

      public class SimpleCacheErrorHandler
      extends Object
      implements CacheErrorHandler

  A simple `CacheErrorHandler` that does not handle the exception at all, simply throwing it back at the client.
  从以下版本开始:
    4.1
  作者:
    Stephane Nicoll

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleCacheErrorHandler()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `handleCacheClearError(RuntimeException exception, Cache cache)` Handle the given runtime exception thrown by the cache provider when clearing the specified `Cache`, possibly rethrowing it as a fatal exception.
    `void` | `handleCacheEvictError(RuntimeException exception, Cache cache, Object key)` Handle the given runtime exception thrown by the cache provider when clearing an item with the specified `key`, possibly rethrowing it as a fatal exception.
    `void` | `handleCacheGetError(RuntimeException exception, Cache cache, Object key)` Handle the given runtime exception thrown by the cache provider when retrieving an item with the specified `key`, possibly rethrowing it as a fatal exception.
    `void` | `handleCachePutError(RuntimeException exception, Cache cache, Object key, Object value)` Handle the given runtime exception thrown by the cache provider when updating an item with the specified `key` and `value`, possibly rethrowing it as a fatal exception.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SimpleCacheErrorHandler

          public SimpleCacheErrorHandler()

  - ### 方法详细资料

    - #### handleCacheGetError

          public void handleCacheGetError(RuntimeException exception,
                                          Cache cache,
                                          Object key)

      从接口复制的说明: `CacheErrorHandler`
      Handle the given runtime exception thrown by the cache provider when retrieving an item with the specified `key`, possibly rethrowing it as a fatal exception.
      指定者:
        `handleCacheGetError` 在接口中 `CacheErrorHandler`
      参数:
        `exception` - the exception thrown by the cache provider
        `cache` - the cache
        `key` - the key used to get the item
      另请参阅:
        `Cache.get(Object)`

    - #### handleCachePutError

          public void handleCachePutError(RuntimeException exception,
                                          Cache cache,
                                          Object key,
                                          @Nullable
                                          Object value)

      从接口复制的说明: `CacheErrorHandler`
      Handle the given runtime exception thrown by the cache provider when updating an item with the specified `key` and `value`, possibly rethrowing it as a fatal exception.
      指定者:
        `handleCachePutError` 在接口中 `CacheErrorHandler`
      参数:
        `exception` - the exception thrown by the cache provider
        `cache` - the cache
        `key` - the key used to update the item
        `value` - the value to associate with the key
      另请参阅:
        `Cache.put(Object, Object)`

    - #### handleCacheEvictError

          public void handleCacheEvictError(RuntimeException exception,
                                            Cache cache,
                                            Object key)

      从接口复制的说明: `CacheErrorHandler`
      Handle the given runtime exception thrown by the cache provider when clearing an item with the specified `key`, possibly rethrowing it as a fatal exception.
      指定者:
        `handleCacheEvictError` 在接口中 `CacheErrorHandler`
      参数:
        `exception` - the exception thrown by the cache provider
        `cache` - the cache
        `key` - the key used to clear the item

    - #### handleCacheClearError

          public void handleCacheClearError(RuntimeException exception,
                                            Cache cache)

      从接口复制的说明: `CacheErrorHandler`
      Handle the given runtime exception thrown by the cache provider when clearing the specified `Cache`, possibly rethrowing it as a fatal exception.
      指定者:
        `handleCacheClearError` 在接口中 `CacheErrorHandler`
      参数:
        `exception` - the exception thrown by the cache provider
        `cache` - the cache to clear