UNPKG

redis-smq-common

Version:

RedisSMQ Common Library provides many components that are mainly used by RedisSMQ and RedisSMQ Monitor.

10 lines 519 B
import { EWorkerThreadChildExecutionCode, EWorkerThreadChildExitCode, } from '../types/index.js'; import { WorkerError } from './worker-error.js'; export class WorkerThreadError extends WorkerError { constructor(msg) { const { code, error } = msg; const messageStr = `Error code: ${EWorkerThreadChildExitCode[code] ?? EWorkerThreadChildExecutionCode[code]}.${error ? ` Cause: ${error.name}(${error.message})` : ''}`; super(messageStr); } } //# sourceMappingURL=worker-thread.error.js.map