Source routine (in backend) reporting the error. PostgreSQL 7.4 and up.
NpgsqlException Class | Npgsql Namespace