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

Method constructor

scripts/setup/SetupError.ts:29–44  ·  view source on GitHub ↗
(
		code: SetupErrorCode,
		message: string,
		context: SetupErrorContext = {},
		cause?: Error,
	)

Source from the content-addressed store, hash-verified

27 public override readonly cause?: Error;
28
29 constructor(
30 code: SetupErrorCode,
31 message: string,
32 context: SetupErrorContext = {},
33 cause?: Error,
34 ) {
35 super(message, { cause });
36 this.name = "SetupError";
37 this.code = code;
38 this.context = context;
39 this.cause = cause;
40
41 if (Error.captureStackTrace) {
42 Error.captureStackTrace(this, SetupError);
43 }
44 }
45
46 toJSON() {
47 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected