I have my java program connected to postgresql. I want to retrieve the error codes for sqlexception. I found the error code for postgresql here.
But Java's SQLException contains only methods for error codes returned as int getErrorCode()
But the error codes in the link are not of the type int. Where can I get the int error codes for postgresql?`