UNPKG

1.07 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/error/AlreadyHasActiveConnectionError.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH;IAAqD,2DAAK;IAGtD,yCAAY,cAAsB;QAAlC,YACI,iBAAO,SAIV;QAPD,UAAI,GAAG,iCAAiC,CAAC;QAIrC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;QACvE,KAAI,CAAC,OAAO,GAAG,4CAAyC,cAAc,2CAAuC;YACzG,4DAA4D,CAAC;;IACrE,CAAC;IAEL,sCAAC;AAAD,CAVA,AAUC,CAVoD,KAAK,GAUzD;AAVY,0EAA+B","file":"AlreadyHasActiveConnectionError.js","sourcesContent":["/**\n * Thrown when consumer tries to recreate connection with the same name, but previous connection was not closed yet.\n */\nexport class AlreadyHasActiveConnectionError extends Error {\n name = \"AlreadyHasActiveConnectionError\";\n\n constructor(connectionName: string) {\n super();\n Object.setPrototypeOf(this, AlreadyHasActiveConnectionError.prototype);\n this.message = `Cannot create a new connection named \"${connectionName}\", because connection with such name ` +\n `already exist and it now has an active connection session.`;\n }\n\n}"],"sourceRoot":".."}
\No newline at end of file