Package org.hibernate.jdbc
Class TooManyRowsAffectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.jdbc.TooManyRowsAffectedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BatchedTooManyRowsAffectedException
public class TooManyRowsAffectedException extends HibernateException
Indicates that more rows were affected then we were expecting to be. Typically indicates presence of duplicate "PK" values in the given table.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActualRowCount()
int
getExpectedRowCount()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TooManyRowsAffectedException
public TooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount)
-
-