Skip to main content

@terascope/utils / errors / ElasticsearchError

Interface: ElasticsearchError

Defined in: packages/utils/src/errors.ts:398

Extends

  • Error

Properties

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

Methods

toJSON()

toJSON(): object

Defined in: packages/utils/src/errors.ts:419

Returns

object

msg?

optional msg: string

response?

optional response: string

statusCode?

optional statusCode: number