[postgis-users] Programmatically identify PostGIS errors?
josh at zephyri.co
Wed Feb 8 11:01:59 PST 2017
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]: Internal error: 7 ERROR: Operation on mixed SRID
Is there a way to identify an error as coming from PostGIS, other than
assuming that all internal errors are from PostGIS?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the postgis-users