MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / constructor

Method constructor

graph-ui/src/provider/rpc-transport.ts:57–76  ·  view source on GitHub ↗
(
        kind: RpcErrorKind,
        toolName: string,
        message: string,
        details: {
            status?: number;
            code?: number;
            notAllowed?: boolean;
            bodyText?: string;
        } = {},
    )

Source from the content-addressed store, hash-verified

55 readonly bodyText?: string;
56
57 constructor(
58 kind: RpcErrorKind,
59 toolName: string,
60 message: string,
61 details: {
62 status?: number;
63 code?: number;
64 notAllowed?: boolean;
65 bodyText?: string;
66 } = {},
67 ) {
68 super(message);
69 this.name = 'RpcError';
70 this.kind = kind;
71 this.toolName = toolName;
72 this.status = details.status;
73 this.code = details.code;
74 this.notAllowed = details.notAllowed ?? false;
75 this.bodyText = details.bodyText;
76 }
77}
78
79/** True, wenn der Fehler daran liegt, dass /rpc dieses Tool nicht anbietet. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected