MCPcopy
hub / github.com/caprover/caprover / createError

Method createError

src/api/ApiStatusCodes.ts:7–9  ·  view source on GitHub ↗
(code: number, message: string)

Source from the content-addressed store, hash-verified

5
6class ApiStatusCodes {
7 static createError(code: number, message: string) {
8 return new CaptainError(code, message || 'NONE')
9 }
10
11 static createCatcher(res: Response) {
12 return function (error: CaptainError | any) {

Callers 15

saveProjectMethod · 0.80
getProjectMethod · 0.80
deleteProjectMethod · 0.80
saveAppMethod · 0.80
nameAllowedOrThrowMethod · 0.80
getAppDefinitionMethod · 0.80
enableCustomDomainSslMethod · 0.80
addCustomDomainForAppMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected