@terascope/core-utils / errors / TSErrorConfig
Interface: TSErrorConfig
Defined in: packages/core-utils/src/errors.ts:98
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:103 |
context? | Record<string, any> | Attach any context metadata to the error | packages/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? | boolean | Used to indicate the an error is fatal | packages/core-utils/src/errors.ts:113 |
message? | string | Override the message when given an error | packages/core-utils/src/errors.ts:128 |
reason? | string | Prefix the error message with a reason | packages/core-utils/src/errors.ts:123 |
retryable? | boolean | Used sometimes to indicate whether an error is retryable | packages/core-utils/src/errors.ts:118 |
statusCode? | number | A HTTP status code for easy use | packages/core-utils/src/errors.ts:108 |