<div dir="ltr">Hello,<div><br></div><div>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:</div><div><br></div><div>SQLSTATE[XX000]: Internal error: 7 ERROR:  Operation on mixed SRID geometries<br></div><div><br></div><div>Is there a way to identify an error as coming from PostGIS, other than assuming that all internal errors are from PostGIS?</div><div><br></div><div>Thanks,</div><div>Joshua Chamberlain</div></div>