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
Parameter | Type |
---|---|
err | ErrorLike |
Returns
string
Source
elasticsearch-store/src/utils/errors.ts:23
getErrorMessages()
getErrorMessages(
errors
):string
Parameters
Parameter | Type |
---|---|
errors | ErrorLike [] |
Returns
string
Source
elasticsearch-store/src/utils/errors.ts:4
getErrorType()
getErrorType(
err
):string
Parameters
Parameter | Type |
---|---|
err | unknown |
Returns
string
Source
elasticsearch-store/src/utils/errors.ts:35
throwValidationError()
throwValidationError(
errors
):string
|null
Parameters
Parameter | Type |
---|---|
errors | undefined | null | ErrorLike [] |
Returns
string
| null