Skip to main content

@terascope/core-utils / errors / TSErrorConfig

Interface: TSErrorConfig

Defined in: packages/core-utils/src/errors.ts:97

Properties

PropertyTypeDescriptionDefined in
code?stringAn descriptive error code that specifies the error type, this follows more node conventionpackages/core-utils/src/errors.ts:102
context?Record<string, any>Attach any context metadata to the errorpackages/core-utils/src/errors.ts:132
defaultErrorMsg?string-packages/core-utils/src/errors.ts:135
defaultStatusCode?number-packages/core-utils/src/errors.ts:134
fatalError?booleanUsed to indicate the an error is fatalpackages/core-utils/src/errors.ts:112
message?stringOverride the message when given an errorpackages/core-utils/src/errors.ts:127
reason?stringPrefix the error message with a reasonpackages/core-utils/src/errors.ts:122
retryable?booleanUsed sometimes to indicate whether an error is retryablepackages/core-utils/src/errors.ts:117
statusCode?numberA HTTP status code for easy usepackages/core-utils/src/errors.ts:107