---
title: JobNotFoundError
slug: data-platform/connect-platform/app-sdk-api-reference-classes-jobnotfounderror
docTags: 
createdAt: 2026-08-05T20:06:36.468Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / JobNotFoundError

# Class: JobNotFoundError

Defined in: [src/jobs/JobNotFoundError.ts:6](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/jobs/JobNotFoundError.ts#L6)

Error thrown when a job run is not found.

## Extends

- [`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf)

## Constructors

### Constructor

:::BlockQuote
**new JobNotFoundError**(`message?`): `JobNotFoundError`
:::

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1082

### Parameters

### message?

`string`

### Returns

`JobNotFoundError`

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `constructor` ``](<./#function Object() \{ \[native code] }>)

### Constructor

:::BlockQuote
**new JobNotFoundError**(`message?`, `options?`): `JobNotFoundError`
:::

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1082

### Parameters

### message?

`string`

### options?

`ErrorOptions`

### Returns

`JobNotFoundError`

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `constructor` ``](<./#function Object() \{ \[native code] }>)

## Properties

### cause?

:::BlockQuote
`optional` **cause**: `unknown`
:::

Defined in: node\_modules/typescript/lib/lib.es2022.error.d.ts:26

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `cause` ``](docId\:OS9StLD5GccO3vLVpMzPv)

***

### message

:::BlockQuote
**message**: `string`
:::

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1077

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `message` ``](docId\:OS9StLD5GccO3vLVpMzPv)

***

### name

:::BlockQuote
**name**: `string`
:::

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1076

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `name` ``](docId\:OS9StLD5GccO3vLVpMzPv)

***

### stack?

:::BlockQuote
`optional` **stack**: `string`
:::

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `stack` ``](docId\:OS9StLD5GccO3vLVpMzPv)

***

### prepareStackTrace()?

:::BlockQuote
`static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`
:::

Defined in: node\_modules/@types/node/globals.d.ts:143

Optional override for formatting stack traces

### Parameters

### err

`Error`

### stackTraces

`CallSite`\[]

### Returns

`any`

### See

[https://v8.dev/docs/stack-trace-api#customizing-stack-traces](https://v8.dev/docs/stack-trace-api#customizing-stack-traces)

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `prepareStackTrace` ``](docId\:OS9StLD5GccO3vLVpMzPv)

***

### stackTraceLimit

:::BlockQuote
`static` **stackTraceLimit**: `number`
:::

Defined in: node\_modules/@types/node/globals.d.ts:145

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `stackTraceLimit` ``](docId\:OS9StLD5GccO3vLVpMzPv)

## Methods

### captureStackTrace()

:::BlockQuote
`static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
:::

Defined in: node\_modules/@types/node/globals.d.ts:136

Create .stack property on a target object

### Parameters

### targetObject

`object`

### constructorOpt?

`Function`

### Returns

`void`

### Inherited from

[`` `JobApiError` ``](docId:47xW6iPoXt8VjLVrsFxFf).[`` `captureStackTrace` ``](docId\:OS9StLD5GccO3vLVpMzPv)
