Skip to main content
Version: Next

Namespace: errorUtils

References

API_ERROR

Re-exports API_ERROR


APP_ERROR

Re-exports APP_ERROR


SUPPORT_ERRORS

Re-exports SUPPORT_ERRORS


VerdaccioError

Re-exports VerdaccioError

Functions

getBadData

getBadData(customMessage?): VerdaccioError

Parameters

NameType
customMessage?string

Returns

VerdaccioError

Defined in

error-utils.ts:72


getBadRequest

getBadRequest(customMessage): VerdaccioError

Parameters

NameType
customMessagestring

Returns

VerdaccioError

Defined in

error-utils.ts:76


getCode

getCode(statusCode, customMessage): VerdaccioError

Parameters

NameType
statusCodenumber
customMessagestring

Returns

VerdaccioError

Defined in

error-utils.ts:104


getConflict

getConflict(message?): VerdaccioError

Parameters

NameTypeDefault value
messagestringAPI_ERROR.PACKAGE_EXIST

Returns

VerdaccioError

Defined in

error-utils.ts:68


getForbidden

getForbidden(message?): VerdaccioError

Parameters

NameTypeDefault value
messagestring"can't use this filename"

Returns

VerdaccioError

Defined in

error-utils.ts:90


getInternalError

getInternalError(customMessage?): VerdaccioError

Parameters

NameType
customMessage?string

Returns

VerdaccioError

Defined in

error-utils.ts:80


getNotFound

getNotFound(customMessage?): VerdaccioError

Parameters

NameType
customMessage?string

Returns

VerdaccioError

Defined in

error-utils.ts:100


getServiceUnavailable

getServiceUnavailable(message?): VerdaccioError

Parameters

NameTypeDefault value
messagestringAPI_ERROR.RESOURCE_UNAVAILABLE

Returns

VerdaccioError

Defined in

error-utils.ts:94


getUnauthorized

getUnauthorized(message?): VerdaccioError

Parameters

NameTypeDefault value
messagestring'no credentials provided'

Returns

VerdaccioError

Defined in

error-utils.ts:86