BadValidationQueryException (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.datasource, class: BadValidationQueryException

# Class BadValidationQueryException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.cayenne.datasource.BadValidationQueryException

All Implemented Interfaces:
  `Serializable, Iterable<Throwable>`

public class BadValidationQueryException extends SQLException
Thrown when the pool fails to validate a fresh connection that is known to be in a good state.

Since:
  4.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BadValidationQueryException(String message)`
  `BadValidationQueryException(String message, Throwable cause)`

- ## Method Summary

  ### Methods inherited from class SQLException

  `getErrorCode, getNextException, getSQLState, iterator, setNextException`

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface Iterable

  `forEach, spliterator`

- ## Constructor Details

  - ### BadValidationQueryException

    public BadValidationQueryException(String message)

  - ### BadValidationQueryException

    public BadValidationQueryException(String message, Throwable cause)