MCPcopy Index your code
hub / github.com/brianc/node-postgres / handleError

Method handleError

packages/pg/lib/query.js:122–134  ·  view source on GitHub ↗
(err, connection)

Source from the content-addressed store, hash-verified

120 }
121
122 handleError(err, connection) {
123 // need to sync after error during a prepared statement
124 if (this._canceledDueToError) {
125 err = this._canceledDueToError
126 this._canceledDueToError = false
127 }
128 // if callback supplied do not emit error event as uncaught error
129 // events will bubble up to node process
130 if (this.callback) {
131 return this.callback(err)
132 }
133 this.emit('error', err)
134 }
135
136 handleReadyForQuery(con) {
137 if (this._canceledDueToError) {

Callers 9

handleReadyForQueryMethod · 0.95
prepareMethod · 0.95
enqueueErrorMethod · 0.45
_handleErrorMessageMethod · 0.45
_pulseQueryQueueMethod · 0.45
queryMethod · 0.45
enqueueErrorFunction · 0.45
client.jsFile · 0.45
afterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected