kz.greetgo.security.util.ErrorUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.security Show documentation
Show all versions of greetgo.security Show documentation
Security infrastructure used in greetgo!
package kz.greetgo.security.util;
import java.sql.SQLException;
public class ErrorUtil {
public static SQLException extractSqlException(Throwable e) {
while (e != null) {
if (e instanceof SQLException) {
return (SQLException) e;
}
e = e.getCause();
}
return null;
}
}