Skip to main content

@terascope/job-components / index / ElasticsearchError

Interface: ElasticsearchError

Defined in: packages/utils/dist/src/errors.d.ts:107

Extends

  • Error

Properties

PropertyTypeDefined in
body?objectpackages/utils/dist/src/errors.d.ts:108
body.error?objectpackages/utils/dist/src/errors.d.ts:109
body.error.index?stringpackages/utils/dist/src/errors.d.ts:112
body.error.reason?stringpackages/utils/dist/src/errors.d.ts:111
body.error.root_cause?[{ index: string; reason: string; type: string; }]packages/utils/dist/src/errors.d.ts:113
body.error.type?stringpackages/utils/dist/src/errors.d.ts:110
index?stringpackages/utils/dist/src/errors.d.ts:125
reason?stringpackages/utils/dist/src/errors.d.ts:124
status?numberpackages/utils/dist/src/errors.d.ts:122
type?stringpackages/utils/dist/src/errors.d.ts:123

Methods

toJSON()

toJSON(): object

Defined in: packages/utils/dist/src/errors.d.ts:126

Returns

object

msg?

optional msg: string

response?

optional response: string

statusCode?

optional statusCode: number