pgjdbc-ng
pgjdbc-ng copied to clipboard
Endlessly recursive error handling (0.8.9)
https://github.com/impossibl/pgjdbc-ng/blob/develop/driver/src/main/java/com/impossibl/postgres/jdbc/ErrorUtils.java
Pass an instance of NoticeException and it loops until stack overflow
public static SQLException makeSQLException(String message, Exception cause) {
if (cause instanceof SQLException) {
return (SQLException) cause;
}
if (cause instanceof NoticeException) {
return makeSQLException(message, cause);
}
return new PGSQLSimpleException(message, cause);
}