org.hibernate.search.errors
Class EmptyQueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.hibernate.search.SearchException
                  extended by org.hibernate.search.errors.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
EmptyQueryException()
           
EmptyQueryException(String message)
           
EmptyQueryException(String message, Throwable cause)
           
EmptyQueryException(Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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-2013 Red Hat Middleware, LLC. All Rights Reserved