MCPcopy Create free account
hub / github.com/Sandakan/Nora / ErrorWithErrorCode

Interface ErrorWithErrorCode

src/main/utils/isAnErrorWithCode.ts:1–3  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface ErrorWithErrorCode extends Error {
2 code: string;
3}
4
5export function isAnErrorWithCode(error: unknown): error is ErrorWithErrorCode {
6 return error instanceof Error && 'code' in error;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected