@terascope/job-components / index / TSErrorConfig
Interface: TSErrorConfig
Defined in: packages/utils/dist/src/errors.d.ts:35
Properties
Property | Type | Description | Defined in |
---|---|---|---|
code? | string | An descriptive error code that specifies the error type, this follows more node convention | packages/utils/dist/src/errors.d.ts:40 |
context? | AnyObject | Attach any context metadata to the error | packages/utils/dist/src/errors.d.ts:64 |
defaultErrorMsg? | string | - | packages/utils/dist/src/errors.d.ts:66 |
defaultStatusCode? | number | - | packages/utils/dist/src/errors.d.ts:65 |
fatalError? | boolean | Used to indicate the an error is fatal | packages/utils/dist/src/errors.d.ts:48 |
message? | string | Override the message when given an error | packages/utils/dist/src/errors.d.ts:60 |
reason? | string | Prefix the error message with a reason | packages/utils/dist/src/errors.d.ts:56 |
retryable? | boolean | Used sometimes to indicate whether an error is retryable | packages/utils/dist/src/errors.d.ts:52 |
statusCode? | number | A HTTP status code for easy use | packages/utils/dist/src/errors.d.ts:44 |