Skip to main content

@terascope/core-utils / errors / ElasticsearchError

Interface: ElasticsearchError

Defined in: packages/core-utils/src/errors.ts:397

Extends

  • Error

Properties

PropertyTypeDefined in
body?objectpackages/core-utils/src/errors.ts:398
body.error?objectpackages/core-utils/src/errors.ts:399
body.error.index?stringpackages/core-utils/src/errors.ts:402
body.error.reason?stringpackages/core-utils/src/errors.ts:401
body.error.root_cause?[{ index?: string; reason?: string; type?: string; }]packages/core-utils/src/errors.ts:403
body.error.type?stringpackages/core-utils/src/errors.ts:400
index?stringpackages/core-utils/src/errors.ts:416
reason?stringpackages/core-utils/src/errors.ts:415
status?numberpackages/core-utils/src/errors.ts:413
type?stringpackages/core-utils/src/errors.ts:414

Methods

toJSON()

toJSON(): object

Defined in: packages/core-utils/src/errors.ts:418

Returns

object

msg?

optional msg: string

response?

optional response: string

statusCode?

optional statusCode: number