* 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.
| 21 | * proper Error instances. |
| 22 | */ |
| 23 | interface 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. */ |
| 31 | function isPlainErrorObject(value: unknown): value is PlainErrorObject { |
nothing calls this directly
no outgoing calls
no test coverage detected