Skip to content

OperationsJobsError — @gj-kit/nest-operations-jobs

A public class from @gj-kit/nest-operations-jobs/core. The signature below is taken directly from the 0.1.1 release declaration.

import { OperationsJobsError } from '@gj-kit/nest-operations-jobs/core';
/**
* The only error type this package throws.
*
* `message` carries the job key and the reason and nothing else — consumer data,
* stack traces and validation-library output live on `cause`, which never
* reaches an HTTP response.
*/
declare class OperationsJobsError extends Error {
readonly code: OperationsJobsErrorCode;
readonly jobKey?: string | undefined;
readonly runId?: string | undefined;
constructor(code: OperationsJobsErrorCode, message: string, options?: OperationsJobsErrorContext & {
readonly cause?: unknown;
});
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-operations-jobs
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub