vtex
Version:
The platform for e-commerce apps
17 lines (16 loc) • 498 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class EventSourceError extends Error {
constructor(event, eventSourceInfo) {
super(`SSE error on endpoint ${eventSourceInfo.url}`);
this.eventSourceInfo = eventSourceInfo;
this.event = { ...event };
}
getDetailsObject() {
return {
event: this.event,
eventSourceInfo: this.eventSourceInfo,
};
}
}
exports.EventSourceError = EventSourceError;