I think you need to put this documentation on the PGError interface since godoc won't show the docs for un-exported types.