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

Method _handleErrorEvent

packages/pg/lib/client.js:411–418  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

409 // this means the socket is dead - do a hard abort of all queries and emit
410 // the socket error on the client as well
411 _handleErrorEvent(err) {
412 if (this._connecting) {
413 return this._handleErrorWhileConnecting(err)
414 }
415 this._queryable = false
416 this._errorAllQueries(err)
417 this.emit('error', err)
418 }
419
420 // handle error messages from the postgres backend
421 _handleErrorMessage(msg) {

Callers 10

_connectMethod · 0.95
_handleErrorMessageMethod · 0.95
_handleRowDescriptionMethod · 0.95
_handleDataRowMethod · 0.95
_handleEmptyQueryMethod · 0.95
_handleParseCompleteMethod · 0.95
_handleCopyInResponseMethod · 0.95
_handleCopyDataMethod · 0.95

Calls 2

_errorAllQueriesMethod · 0.95

Tested by

no test coverage detected