Skip to main content

@terascope/job-components / index / TSErrorConfig

Interface: TSErrorConfig

Properties

code?

optional code: string

An descriptive error code that specifies the error type, this follows more node convention

Source

packages/utils/dist/src/errors.d.ts:40


context?

optional context: AnyObject

Attach any context metadata to the error

Source

packages/utils/dist/src/errors.d.ts:64


defaultErrorMsg?

optional defaultErrorMsg: string

Source

packages/utils/dist/src/errors.d.ts:66


defaultStatusCode?

optional defaultStatusCode: number

Source

packages/utils/dist/src/errors.d.ts:65


fatalError?

optional fatalError: boolean

Used to indicate the an error is fatal

Source

packages/utils/dist/src/errors.d.ts:48


message?

optional message: string

Override the message when given an error

Source

packages/utils/dist/src/errors.d.ts:60


reason?

optional reason: string

Prefix the error message with a reason

Source

packages/utils/dist/src/errors.d.ts:56


retryable?

optional retryable: boolean

Used sometimes to indicate whether an error is retryable

Source

packages/utils/dist/src/errors.d.ts:52


statusCode?

optional statusCode: number

A HTTP status code for easy use

Source

packages/utils/dist/src/errors.d.ts:44