public class InvalidResultException extends DataAccessException
Query
. This
exception indicates wrong usage of jOOQ's various fetch methods, or an
integrity problem in your data after query execution, meaning that
the execution of the query in the database is not affected.
This is typically the case in the following situations:
ResultQuery.fetchOne()
and the
database returns more than one record (you'll get a
TooManyRowsException
).ResultQuery.fetchMap(org.jooq.Field)
and the database returns several
records per key.TableRecord
using
UpdatableRecord.refresh()
, and the record does not exist anymore in
the database (you'll get a NoDataFoundException
).Constructor and Description |
---|
InvalidResultException(String message)
Constructor for InvalidResultException.
|
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateSubclass
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidResultException(String message)
message
- the detail messageCopyright © 2019. All rights reserved.