Re: [postgis-users] Programmatically identify PostGIS errors?

2017-02-08 Thread P O'Toole
Josh >Hello, >My app allows users to write their own SQL, and I'd like to show them all >error messages directly pertaining to their query, while hiding system >errors, etc. It seems that all PostGIS errors, however, have the same >generic error code: XX000 Internal Error. For example:

[postgis-users] Programmatically identify PostGIS errors?

2017-02-08 Thread Joshua Chamberlain
Hello, My app allows users to write their own SQL, and I'd like to show them all error messages directly pertaining to their query, while hiding system errors, etc. It seems that all PostGIS errors, however, have the same generic error code: XX000 Internal Error. For example: SQLSTATE[XX000]: