Skip to main content

@terascope/core-utils / errors / TSErrorConfig

Interface: TSErrorConfig

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

Properties

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