int中没有返回PostgreSQL错误代码?

Ash*_*win 3 postgresql jdbc

我把我的java程序连接到postgresql.我想检索sqlexception的错误代码.我在这里找到了postgresql的错误代码 .

但是Java SQLException只包含以int形式返回的错误代码的方法getErrorCode()

但链接中的错误代码不是int类型.我在哪里可以获得postgresql的int错误代码?`