MCPcopy Create free account
hub / github.com/Solvro/web-planer / handle

Method handle

backend/app/exceptions/handler.ts:15–23  ·  view source on GitHub ↗

* The method is used for handling errors and returning * response to the client

(error: unknown, ctx: HttpContext)

Source from the content-addressed store, hash-verified

13 * response to the client
14 */
15 async handle(error: unknown, ctx: HttpContext) {
16 if (error instanceof Error) {
17 return ctx.response.status(500).send({
18 message: "Internal server error",
19 error: error.message,
20 });
21 }
22 return super.handle(error, ctx);
23 }
24
25 /**
26 * The method is used to report error to the logging service or

Callers 1

console.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected