@eggjs/cluster
Version:
cluster manager for egg
17 lines (16 loc) • 456 B
JavaScript
//#region src/error/ClusterWorkerExceptionError.ts
var ClusterWorkerExceptionError = class extends Error {
count;
constructor(agent, worker) {
const message = `[master] ${agent} agent and ${worker} worker(s) alive, exit to avoid unknown state`;
super(message);
this.name = this.constructor.name;
this.count = {
agent,
worker
};
Error.captureStackTrace(this, this.constructor);
}
};
//#endregion
export { ClusterWorkerExceptionError };