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
Name | Type |
---|---|
customMessage? | string |
Returns
Defined in
getBadRequest
▸ getBadRequest(customMessage
): VerdaccioError
Parameters
Name | Type |
---|---|
customMessage | string |
Returns
Defined in
getCode
▸ getCode(statusCode
, customMessage
): VerdaccioError
Parameters
Name | Type |
---|---|
statusCode | number |
customMessage | string |
Returns
Defined in
getConflict
▸ getConflict(message?
): VerdaccioError
Parameters
Name | Type | Default value |
---|---|---|
message | string | API_ERROR.PACKAGE_EXIST |
Returns
Defined in
getForbidden
▸ getForbidden(message?
): VerdaccioError
Parameters
Name | Type | Default value |
---|---|---|
message | string | "can't use this filename" |
Returns
Defined in
getInternalError
▸ getInternalError(customMessage?
): VerdaccioError
Parameters
Name | Type |
---|---|
customMessage? | string |
Returns
Defined in
getNotFound
▸ getNotFound(customMessage?
): VerdaccioError
Parameters
Name | Type |
---|---|
customMessage? | string |
Returns
Defined in
getServiceUnavailable
▸ getServiceUnavailable(message?
): VerdaccioError
Parameters
Name | Type | Default value |
---|---|---|
message | string | API_ERROR.RESOURCE_UNAVAILABLE |
Returns
Defined in
getUnauthorized
▸ getUnauthorized(message?
): VerdaccioError
Parameters
Name | Type | Default value |
---|---|---|
message | string | 'no credentials provided' |