MCPcopy Create free account
hub / github.com/Gin-Quin/gravity / constructor

Method constructor

packages/gravity/source/errors/ServerError.ts:5–8  ·  view source on GitHub ↗
(message: string, { status = 500 }: { status?: number } = {})

Source from the content-addressed store, hash-verified

3 public status: number;
4
5 constructor(message: string, { status = 500 }: { status?: number } = {}) {
6 super(message);
7 this.status = status;
8 }
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected