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:
    java.io.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(java.lang.String msg)` Construct an instance of TypeMismatchException
    `TypeMismatchException(java.lang.String msg, java.lang.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(java.lang.String msg)

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

    - #### TypeMismatchException

          public TypeMismatchException(java.lang.String msg,
                                       java.lang.Throwable cause)

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