Skip to content

basalt / queue/src / JobContextError

Class: JobContextError ​

Defined in: queue/src/manager.ts:86

The envelope's context carries an identity field (tenant, tenantId, userId) of the wrong shape. The job fails closed instead of running with the field dropped — a job that loses its tenant would run in the central scope, which is a widening, not a safe default.

Extends ​

Constructors ​

Constructor ​

> new JobContextError(job, field): JobContextError

Defined in: queue/src/manager.ts:88

Parameters ​

job ​

string

field ​

string

Returns ​

JobContextError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 500 = 500

Defined in: queue/src/manager.ts:87

Released under the MIT License.