MCPcopy Create free account
hub / github.com/Writesonic/GPTRouter / constructor

Method constructor

src/library/customError.ts:13–17  ·  view source on GitHub ↗
(statusCode: number, message: string)

Source from the content-addressed store, hash-verified

11 */
12 statusCode: number;
13 constructor(statusCode: number, message: string) {
14 super(message);
15 this.statusCode = statusCode;
16 Error.captureStackTrace(this, this.constructor);
17 }
18}
19
20export default ApiError;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected