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