io.hypersistence.utils.jdbc.validator.SQLStatementCountMismatchException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hypersistence-utils-hibernate-62 Show documentation
Show all versions of hypersistence-utils-hibernate-62 Show documentation
Utilities for Spring and Hibernate ORM 6.2 or newer
package io.hypersistence.utils.jdbc.validator;
/**
* SQLStatementCountMismatchException - Thrown whenever there is a mismatch between
* the expected statements count and the ones being executed.
*
* @author Vlad Mihalcea
* @since 3.0.2
*/
public class SQLStatementCountMismatchException extends RuntimeException {
private final long expected;
private final long recorded;
public SQLStatementCountMismatchException(
StatementType statementType,
long expected,
long recorded) {
super(statementType.toString(expected, recorded));
this.expected = expected;
this.recorded = recorded;
}
public long getExpected() {
return expected;
}
public long getRecorded() {
return recorded;
}
}