org.kiwiproject.test.jdbc.RuntimeSQLException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kiwi-test Show documentation
Show all versions of kiwi-test Show documentation
Kiwi Test is a test utility library.
package org.kiwiproject.test.jdbc;
import org.kiwiproject.base.KiwiDeprecated;
import org.kiwiproject.base.KiwiDeprecated.Severity;
import org.kiwiproject.base.KiwiPreconditions;
import java.sql.SQLException;
/**
* Unchecked exception that wraps a {@link SQLException}.
*
* @deprecated replaced by UncheckedSQLException in kiwi 4.2.0
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated(since = "3.6.0", forRemoval = true)
@KiwiDeprecated(
removeAt = "4.0.0",
replacedBy = "org.kiwiproject.jdbc.UncheckedSQLException",
reference = "https://github.com/kiwiproject/kiwi-test/issues/508",
usageSeverity = Severity.SEVERE
)
public class RuntimeSQLException extends RuntimeException {
/**
* Constructs an instance of this class.
*
* @param message the detail message
* @param cause the {@link SQLException} which is the cause
*/
public RuntimeSQLException(String message, SQLException cause) {
super(message, KiwiPreconditions.requireNotNull(cause));
}
/**
* Constructs an instance of this class.
*
* @param cause the {@link SQLException} which is the cause
*/
public RuntimeSQLException(SQLException cause) {
super(KiwiPreconditions.requireNotNull(cause));
}
/**
* Returns the cause of this exception.
*
* @return the {@link SQLException} which is the cause of this exception.
*/
@Override
public synchronized SQLException getCause() {
return (SQLException) super.getCause();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy