TypeMismatchException (Apache Geode 1.12.4)
Date: 2021-07-21

org.apache.geode.cache.query

## Class TypeMismatchException

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

- All Implemented Interfaces:
    Serializable

      public class TypeMismatchException
      extends QueryException

  Thrown if type consistency is violated while a query is being executed.
  Since:
    GemFire 4.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TypeMismatchException(String msg)` Construct an instance of TypeMismatchException
    `TypeMismatchException(String msg, Throwable cause)` Construct an instance of TypeMismatchException

  - ### 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

    - #### TypeMismatchException

          public TypeMismatchException(String msg)

      Construct an instance of TypeMismatchException
      Parameters:
        `msg` - the error message

    - #### TypeMismatchException

          public TypeMismatchException(String msg,
                                       Throwable cause)

      Construct an instance of TypeMismatchException
      Parameters:
        `msg` - the error message
        `cause` - a Throwable cause of this exception