Class: ConnectionClosedError
TypeScript 0.4.0 · Source commit cbff27b8a34e1384384018680e46c20d5c610cc9. Generated with reviewed comment corrections; see generation notes.
Defined in: errors.ts:95
A client-side lifecycle error. Operations requiring an active connection can throw it before connect or after close; publishing, queue/topic creation, and consumer creation also reject new work as shutdown starts. connect() rejects a connection on which close() has begun: close is terminal.
Message settlement methods and setVt wrap this error in a plain Error, so an
instanceof check is not a reliable lifecycle test on those methods.
There is no SQLSTATE code. Construct a new connection to reconnect.
Extends
Error
Constructors
Constructor
new ConnectionClosedError(
message?):ConnectionClosedError
Defined in: errors.ts:96
Parameters
message?
string = 'Connection has been closed; construct a new Connection to reconnect'
Returns
ConnectionClosedError
Overrides
Error.constructor