Skip to main content

@terascope/job-components / index / TSErrorConfig

Interface: TSErrorConfig

Defined in: packages/utils/dist/src/errors.d.ts:35

Properties

PropertyTypeDescriptionDefined in
code?stringAn descriptive error code that specifies the error type, this follows more node conventionpackages/utils/dist/src/errors.d.ts:40
context?AnyObjectAttach any context metadata to the errorpackages/utils/dist/src/errors.d.ts:64
defaultErrorMsg?string-packages/utils/dist/src/errors.d.ts:66
defaultStatusCode?number-packages/utils/dist/src/errors.d.ts:65
fatalError?booleanUsed to indicate the an error is fatalpackages/utils/dist/src/errors.d.ts:48
message?stringOverride the message when given an errorpackages/utils/dist/src/errors.d.ts:60
reason?stringPrefix the error message with a reasonpackages/utils/dist/src/errors.d.ts:56
retryable?booleanUsed sometimes to indicate whether an error is retryablepackages/utils/dist/src/errors.d.ts:52
statusCode?numberA HTTP status code for easy usepackages/utils/dist/src/errors.d.ts:44