UNPKG

@mos-connection/helper

Version:

Helper functions for the MOS-connection library

17 lines 676 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MosReplyError = void 0; /** An error that occurred while parsing a reply to a sent mos message */ class MosReplyError extends Error { constructor(orgError, parsedReply) { super('N/A'); this.parsedReply = parsedReply; this.name = 'MosReplyError'; const orgMessage = orgError instanceof Error ? orgError.message : `${orgError}`; if (orgError instanceof Error) this.stack = orgError.stack; this.message = `Unable to parse MOS reply: ${orgMessage}`; } } exports.MosReplyError = MosReplyError; //# sourceMappingURL=Errors.js.map