Skip to main content

@terascope/core-utils / errors / TSErrorConfig

Interface: TSErrorConfig

Defined in: core-utils/src/errors.ts:98

Properties

PropertyTypeDescriptionDefined in
code?stringAn descriptive error code that specifies the error type, this follows more node conventioncore-utils/src/errors.ts:103
context?Record<string, any>Attach any context metadata to the errorcore-utils/src/errors.ts:133
defaultErrorMsg?string-core-utils/src/errors.ts:136
defaultStatusCode?number-core-utils/src/errors.ts:135
fatalError?booleanUsed to indicate the an error is fatalcore-utils/src/errors.ts:113
message?stringOverride the message when given an errorcore-utils/src/errors.ts:128
reason?stringPrefix the error message with a reasoncore-utils/src/errors.ts:123
retryable?booleanUsed sometimes to indicate whether an error is retryablecore-utils/src/errors.ts:118
statusCode?numberA HTTP status code for easy usecore-utils/src/errors.ts:108