Package org.apache.cayenne.datasource

## 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 java.sql.SQLException

      `getErrorCode, getNextException, getSQLState, iterator, setNextException`

    - ### 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`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### BadValidationQueryException

          public BadValidationQueryException​(String message)

    - #### BadValidationQueryException

          public BadValidationQueryException​(String message,
                                             Throwable cause)