Package org.prolog4j

Class InvalidQueryException

    • Constructor Detail

      • InvalidQueryException

        public InvalidQueryException​(String query)
        Constructs an InvalidQueryException. It takes as its argument the Prolog query that cannot be processed.
        Parameters:
        query - the syntactically incorrect Prolog query
      • InvalidQueryException

        public InvalidQueryException​(String query,
                                     Throwable cause)
        Constructs an InvalidQueryException exception. It takes as its first argument the Prolog query that cannot be processed. Its second argument is the original exception (that has been thrown by the inherent Prolog implementation).
        Parameters:
        query - the syntactically incorrect Prolog query
        cause - the original exception thrown by the implementation
    • Method Detail

      • getQuery

        public String getQuery()
        Returns the query that caused the exception.
        Returns:
        the syntactically incorrect Prolog query