Skip to main content

elasticsearch-store / utils/errors

utils/errors

Type Aliases

ErrorLike

ErrorLike: object | ErrorObject | string

Source

elasticsearch-store/src/utils/errors.ts:39

Functions

getErrorMessage()

getErrorMessage(err): string

Parameters

ParameterType
errErrorLike

Returns

string

Source

elasticsearch-store/src/utils/errors.ts:23


getErrorMessages()

getErrorMessages(errors): string

Parameters

ParameterType
errorsErrorLike[]

Returns

string

Source

elasticsearch-store/src/utils/errors.ts:4


getErrorType()

getErrorType(err): string

Parameters

ParameterType
errunknown

Returns

string

Source

elasticsearch-store/src/utils/errors.ts:35


throwValidationError()

throwValidationError(errors): string | null

Parameters

ParameterType
errorsundefined | null | ErrorLike[]

Returns

string | null

Source

elasticsearch-store/src/utils/errors.ts:9