Skip to content

Commit 1c2f87c

Browse files
authored
fix: add 28000 to login exception list (#457)
1 parent 94b713a commit 1c2f87c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wrapper/src/main/java/software/amazon/jdbc/exceptions/PgExceptionHandler.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public class PgExceptionHandler implements ExceptionHandler {
3535
"XX" // internal error (backend)
3636
);
3737

38-
public static final String ACCESS_ERROR = "28P01";
38+
public static final List<String> ACCESS_ERROR = Arrays.asList(
39+
"28P01",
40+
"28000" // PAM authentication errors
41+
);
3942

4043
@Override
4144
public boolean isNetworkException(final Throwable throwable) {

0 commit comments

Comments
 (0)