MCPcopy Create free account
hub / github.com/MetaMask/rpc-errors / errors.ts

File errors.ts

src/errors.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { JsonRpcError, EthereumProviderError } from './classes';
2import { errorCodes } from './error-constants';
3import type { OptionalDataWithOptionalCause } from './utils';
4import { getMessageFromCode } from './utils';

Callers

nothing calls this directly

Calls 2

getJsonRpcErrorFunction · 0.85
getEthProviderErrorFunction · 0.85

Tested by

no test coverage detected