IndexExistsException (Apache Geode 1.12.8)
Date: 2022-01-10

org.apache.geode.cache.query

## Class IndexExistsException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.apache.geode.GemFireCheckedException
      - - org.apache.geode.cache.query.QueryException
        - - org.apache.geode.cache.query.IndexExistsException

- All Implemented Interfaces:
    Serializable

      public class IndexExistsException
      extends QueryException

  Thrown while creating the new index if there exists an Index with the same definition as new index.
  Since:
    GemFire 4.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IndexExistsException(String msg)` Constructs instance of IndexNameConflictException with error message
    `IndexExistsException(String msg, Throwable cause)` Constructs instance of IndexNameConflictException with error message and cause

  - ### Method Summary

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

      `getRootCause`

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

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

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

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

- - ### Constructor Detail

    - #### IndexExistsException

          public IndexExistsException(String msg)

      Constructs instance of IndexNameConflictException with error message
      Parameters:
        `msg` - the error message

    - #### IndexExistsException

          public IndexExistsException(String msg,
                                      Throwable cause)

      Constructs instance of IndexNameConflictException with error message and cause
      Parameters:
        `msg` - the error message
        `cause` - a Throwable that is a cause of this exception