org.hibernate.search.exception

## Class EmptyQueryException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.hibernate.search.exception.SearchException
        - - org.hibernate.search.exception.EmptyQueryException

- All Implemented Interfaces:
    Serializable

      public class EmptyQueryException
      extends SearchException

  This Exception is thrown when an empty TermQuery (keyword query) is created, or if any string query only returns whitespace after applying Analyzers. Applications should validate user input before running such a Query;
  Author:
    Sanne Grinovero (C) 2012 Red Hat Inc.
  See Also:
    `AnalyzerUtils`, Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EmptyQueryException()`
    `EmptyQueryException(String message)`
    `EmptyQueryException(String message, Throwable cause)`
    `EmptyQueryException(Throwable cause)`

  - ### Method Summary

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

    - #### EmptyQueryException

          public EmptyQueryException()

    - #### EmptyQueryException

          public EmptyQueryException(String message)

    - #### EmptyQueryException

          public EmptyQueryException(String message,
                                     Throwable cause)

    - #### EmptyQueryException

          public EmptyQueryException(Throwable cause)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved