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

Function isErrorLike

sdk-node/src/serialize-error.js:207–215  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

205}
206
207export function isErrorLike(value) {
208 return (
209 Boolean(value) &&
210 typeof value === "object" &&
211 "name" in value &&
212 "message" in value &&
213 "stack" in value
214 );
215}
216
217function isMinimumViableSerializedError(value) {
218 return (

Callers 1

destroyCircularFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected