org.apache.geode.cache

## Class CacheException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.apache.geode.GemFireException
        - - org.apache.geode.cache.CacheException

- All Implemented Interfaces:
    java.io.Serializable
  Direct Known Subclasses:
    CacheExistsException, EntryExistsException, EntryNotFoundException, RegionExistsException, TransactionException

      public abstract class CacheException
      extends GemFireException

  A generic exception, which indicates a cache error has occurred. All the other cache exceptions are subclasses of this class. This class is abstract and therefore only subclasses are instantiated.
  Since:
    GemFire 2.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CacheException()` Constructs a new `CacheException`.
    `CacheException(java.lang.String s)` Constructs a new `CacheException` with a message string.
    `CacheException(java.lang.String s, java.lang.Throwable cause)` Constructs a `CacheException` with a message string and a base exception
    `CacheException(java.lang.Throwable cause)` Constructs a `CacheException` with a cause

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `toString()`

    - ### Methods inherited from class org.apache.geode.GemFireException

      `getRootCause`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### CacheException

          public CacheException()

      Constructs a new `CacheException`.

    - #### CacheException

          public CacheException(java.lang.String s)

      Constructs a new `CacheException` with a message string.

    - #### CacheException

          public CacheException(java.lang.String s,
                                java.lang.Throwable cause)

      Constructs a `CacheException` with a message string and a base exception

    - #### CacheException

          public CacheException(java.lang.Throwable cause)

      Constructs a `CacheException` with a cause

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Throwable`