Class QuerySyntaxException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by
                  extended by
All Implemented Interfaces:

public class QuerySyntaxException
extends SlingException

The QuerySyntaxException is thrown by the ResourceResolver.findResources(String, String) and ResourceResolver.queryResources(String, String) methods if the query syntax is wrong or the requested query language is not available.

See Also:
Serialized Form

Constructor Summary
QuerySyntaxException(String message, String query, String language)
QuerySyntaxException(String message, String query, String language, Throwable cause)
Method Summary
 String getLanguage()
 String getQuery()
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


public QuerySyntaxException(String message,
                            String query,
                            String language)


public QuerySyntaxException(String message,
                            String query,
                            String language,
                            Throwable cause)
Method Detail


public String getQuery()


public String getLanguage()

Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.