java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jooq.exception.DataAccessException
org.jooq.exception.DataChangedException
- All Implemented Interfaces:
Serializable
An error occurred while storing a record with optimistic locking active,
whose underlying data had already been changed.
This exception may be thrown if:
- The record has been changed.
- The record has been removed.
- It isn't possible to detect whether the record has been changed (e.g.
because
UpdatableRecord.update()
is called on a record that hasn't been previously fetched from the database).
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorDescriptionDataChangedException
(String message) Constructor for DataChangedException.DataChangedException
(String message, Throwable cause) Constructor for DataChangedException. -
Method Summary
Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateSubclass
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataChangedException
Constructor for DataChangedException.- Parameters:
message
- the detail message
-
DataChangedException
Constructor for DataChangedException.- Parameters:
message
- the detail messagecause
- the root cause (usually from using a underlying data access API such as JDBC)
-