@terascope/core-utils / errors / TSErrorConfig
Interface: TSErrorConfig
Defined in: packages/core-utils/src/errors.ts:97
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
code? | string | An descriptive error code that specifies the error type, this follows more node convention | packages/core-utils/src/errors.ts:102 |
context? | Record<string, any> | Attach any context metadata to the error | packages/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? | boolean | Used to indicate the an error is fatal | packages/core-utils/src/errors.ts:112 |
message? | string | Override the message when given an error | packages/core-utils/src/errors.ts:127 |
reason? | string | Prefix the error message with a reason | packages/core-utils/src/errors.ts:122 |
retryable? | boolean | Used sometimes to indicate whether an error is retryable | packages/core-utils/src/errors.ts:117 |
statusCode? | number | A HTTP status code for easy use | packages/core-utils/src/errors.ts:107 |