@terascope/utils / errors / TSErrorConfig
Interface: TSErrorConfig
Defined in: packages/utils/src/errors.ts:99
Properties
Property | Type | Description | Defined in |
---|---|---|---|
code? | string | An descriptive error code that specifies the error type, this follows more node convention | packages/utils/src/errors.ts:104 |
context? | AnyObject | Attach any context metadata to the error | packages/utils/src/errors.ts:134 |
defaultErrorMsg? | string | - | packages/utils/src/errors.ts:137 |
defaultStatusCode? | number | - | packages/utils/src/errors.ts:136 |
fatalError? | boolean | Used to indicate the an error is fatal | packages/utils/src/errors.ts:114 |
message? | string | Override the message when given an error | packages/utils/src/errors.ts:129 |
reason? | string | Prefix the error message with a reason | packages/utils/src/errors.ts:124 |
retryable? | boolean | Used sometimes to indicate whether an error is retryable | packages/utils/src/errors.ts:119 |
statusCode? | number | A HTTP status code for easy use | packages/utils/src/errors.ts:109 |