MCPcopy Create free account
hub / github.com/Zoot01/sentrify-dashboard / constructor

Method constructor

apps/api/src/utils/errorHandler.ts:7–14  ·  view source on GitHub ↗
(status: StatusCodes, message: ReasonPhrases | string)

Source from the content-addressed store, hash-verified

5 status: StatusCodes;
6
7 constructor(status: StatusCodes, message: ReasonPhrases | string) {
8 super(message);
9
10 Object.setPrototypeOf(this, new.target.prototype);
11 this.name = Error.name;
12 this.status = status;
13 Error.captureStackTrace(this);
14 }
15}
16
17export const errorResponder = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected