Elasticsearch Store: `Utils Errors`
Table of contents
Type Aliases
Functions
Type Aliases
ErrorLike
Ƭ ErrorLike: { message?
: string
; msg?
: string
; status?
: number
; statusCode?
: number
} | ajv.ErrorObject
| string
Defined in
elasticsearch-store/src/utils/errors.ts:38
Functions
getErrorMessage
▸ getErrorMessage(err
): string
Parameters
Name | Type |
---|---|
err | ErrorLike |
Returns
string
Defined in
elasticsearch-store/src/utils/errors.ts:22
getErrorMessages
▸ getErrorMessages(errors
): string
Parameters
Name | Type |
---|---|
errors | ErrorLike [] |
Returns
string
Defined in
elasticsearch-store/src/utils/errors.ts:4
getErrorType
▸ getErrorType(err
): string
Parameters
Name | Type |
---|---|
err | unknown |
Returns
string
Defined in
elasticsearch-store/src/utils/errors.ts:34
throwValidationError
▸ throwValidationError(errors
): string
| null
Parameters
Name | Type | ||
---|---|---|---|
errors | undefined \ | null \ | ErrorLike [] |
Returns
string
| null