Class QueryException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NonUniqueResultException, NoResultException

public class QueryException extends RuntimeException
Thrown if an exception during query execution occurs.
Since:
1.0.0
See Also:
  • Constructor Details

    • QueryException

      public QueryException(String message, String queryString)
      Creates a new QueryException.
      Parameters:
      message - The exception message
      queryString - The query string
    • QueryException

      public QueryException(String message, Throwable cause, String queryString)
      Creates a new QueryException.
      Parameters:
      message - The exception message
      cause - The underlying exception cause
      queryString - The query string
  • Method Details

    • getQueryString

      public String getQueryString()
      Returns the query string associated to this exception.
      Returns:
      the query string associated to this exception