UNPKG

@eggjs/cluster

Version:

cluster manager for egg

22 lines (21 loc) 539 B
//#region src/error/ClusterAgentWorkerError.ts var ClusterAgentWorkerError = class extends Error { id; /** * pid in process mode * tid in worker_threads mode */ workerId; status; constructor(id, workerId, status, error) { const message = `Got agent worker error: ${error.message}`; super(message, { cause: error }); this.name = this.constructor.name; this.id = id; this.workerId = workerId; this.status = status; Error.captureStackTrace(this, this.constructor); } }; //#endregion export { ClusterAgentWorkerError };