MCPcopy
hub / github.com/MiniMax-AI/cli / toJSON

Method toJSON

src/errors/base.ts:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 }
13
14 toJSON() {
15 return {
16 error: {
17 code: this.exitCode,
18 message: this.message,
19 ...(this.hint ? { hint: this.hint } : {}),
20 },
21 };
22 }
23}
24
25export class SDKError extends CLIError {

Callers 2

base.test.tsFile · 0.80
handleErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected