MCPcopy Index your code
hub / github.com/pmxt-dev/pmxt / PlainErrorObject

Interface PlainErrorObject

core/src/utils/error-mapper.ts:23–28  ·  view source on GitHub ↗

* A plain error-like object with an HTTP status and optional data payload. * Common in third-party SDKs (e.g. Polymarket clob-client) that don't throw * proper Error instances.

Source from the content-addressed store, hash-verified

21 * proper Error instances.
22 */
23interface PlainErrorObject {
24 readonly status: number;
25 readonly data?: unknown;
26 readonly statusText?: string;
27 readonly message?: string;
28}
29
30/** Type guard for plain error objects with numeric status codes. */
31function isPlainErrorObject(value: unknown): value is PlainErrorObject {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected