Class InvalidQueryException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidQueryException
    extends java.lang.Exception
    A class representing a failure to generate the code for a query because the query is invalid. This class is associated with a list of reasons why the query is invalid.
    Author:
    Alex Kalderimis
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidQueryException​(java.lang.String msg)
      Construct an exception with a single problem.
      InvalidQueryException​(java.util.Collection<? extends java.lang.String> problems)
      Construct an exception with a list of problems.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getProblems()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(java.lang.String msg)
        Construct an exception with a single problem.
        Parameters:
        msg - The reason why this query is invalid.
      • InvalidQueryException

        public InvalidQueryException​(java.util.Collection<? extends java.lang.String> problems)
        Construct an exception with a list of problems.
        Parameters:
        problems - The reasons why this query is invalid.
    • Method Detail

      • getProblems

        public java.util.List<java.lang.String> getProblems()
        Returns:
        The reasons why this query is invalid.