org.apache.sling.api.resource
Class QuerySyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.sling.api.SlingException
                  extended by org.apache.sling.api.resource.QuerySyntaxException
All Implemented Interfaces:
java.io.Serializable

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

QuerySyntaxException

public QuerySyntaxException(java.lang.String message,
                            java.lang.String query,
                            java.lang.String language)

QuerySyntaxException

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

getQuery

public java.lang.String getQuery()

getLanguage

public java.lang.String getLanguage()


Copyright © 2007-2009. All Rights Reserved.