MCPcopy Create free account
hub / github.com/PalisadoesFoundation/talawa-api / toJSON

Method toJSON

scripts/setup/SetupError.ts:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 toJSON() {
47 return {
48 name: this.name,
49 message: this.message,
50 code: this.code,
51 context: this.context,
52 cause: this.cause
53 ? { name: this.cause.name, message: this.cause.message }
54 : undefined,
55 };
56 }
57
58 getDetailedMessage(): string {
59 const contextStr = Object.entries(this.context)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected