All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hypersistence.utils.jdbc.validator.SQLStatementCountMismatchException Maven / Gradle / Ivy

There is a newer version: 3.7.6
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy