MCPcopy Create free account
hub / github.com/agentrpc/agentrpc / NonError

Class NonError

sdk-node/src/serialize-error.js:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24const errorConstructors = new Map(list);
25
26export class NonError extends Error {
27 name = "NonError";
28
29 constructor(message) {
30 super(NonError._prepareSuperMessage(message));
31 }
32
33 static _prepareSuperMessage(message) {
34 try {
35 return JSON.stringify(message);
36 } catch {
37 return String(message);
38 }
39 }
40}
41
42const commonProperties = [
43 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected