Class CacheOnErrorEvent

java.lang.Object
io.github.resilience4j.cache.event.AbstractCacheEvent
io.github.resilience4j.cache.event.CacheOnErrorEvent
All Implemented Interfaces:
CacheEvent

public class CacheOnErrorEvent extends AbstractCacheEvent
A CacheEvent which informs that accessing the cache has caused an exception.
  • Field Details

    • throwable

      private final Throwable throwable
  • Constructor Details

    • CacheOnErrorEvent

      public CacheOnErrorEvent(String cacheName, Throwable throwable)
  • Method Details

    • getEventType

      public CacheEvent.Type getEventType()
      Description copied from interface: CacheEvent
      Returns the type of the Cache event.
      Returns:
      the type of the Cache event
    • getThrowable

      public Throwable getThrowable()
    • toString

      public String toString()
      Overrides:
      toString in class Object