<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>In my Java API server, I am using SERIALIZABLE transaction isolation mode, so I'm specially handling the error code of "40001 serialization_failure", which can occur often. I'm getting the error code String using SQLException's getSQLState() function.<br/>
<br/>
Therefore I was surprised to see that the Java enum org.postgresql.util.PSQLState does not include this error code.<br/>
<br/>
PSQLState code: <a href="https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/util/PSQLState.java" target="_blank">https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/util/PSQLState.java</a><br/>
PSQLState documentation: <a href="https://jdbc.postgresql.org/development/privateapi/org/postgresql/util/PSQLState.html" target="_blank">https://jdbc.postgresql.org/development/privateapi/org/postgresql/util/PSQLState.html</a><br/>
<br/>
The 40001 serialization_failure error is listed here: <a href="https://www.postgresql.org/docs/11/errcodes-appendix.html" target="_blank">https://www.postgresql.org/docs/11/errcodes-appendix.html</a><br/>
<br/>
It seems like this should be added to the pgjdbc Java enum. Is there a reason it's not in there?</div></div></body></html>