org.modeshape.graph.query.parse
Class InvalidQueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.modeshape.graph.query.parse.InvalidQueryException
All Implemented Interfaces:
Serializable

public class InvalidQueryException
extends RuntimeException

An exception signalling that a query is invalid (but typically well-formed)

See Also:
Serialized Form

Constructor Summary
InvalidQueryException(String query)
          Create an exception with the invalid query.
InvalidQueryException(String query, String message)
          Create an exception with the invalid query and a message.
 
Method Summary
 String getQuery()
          Get the XPath query that is invalid.
 
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

InvalidQueryException

public InvalidQueryException(String query)
Create an exception with the invalid query.

Parameters:
query - the query that is invalid

InvalidQueryException

public InvalidQueryException(String query,
                             String message)
Create an exception with the invalid query and a message.

Parameters:
query - the query that is invalid
message -
Method Detail

getQuery

public String getQuery()
Get the XPath query that is invalid.

Returns:
the query; never null


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.