MCPcopy Create free account
hub / github.com/wevm/viem / constructor

Method constructor

src/errors/rpc.ts:487–493  ·  view source on GitHub ↗
(cause: Error)

Source from the content-addressed store, hash-verified

485 static code = 4902 as const
486
487 constructor(cause: Error) {
488 super(cause, {
489 code: SwitchChainError.code,
490 name: 'SwitchChainError',
491 shortMessage: 'An error occurred when attempting to switch chain.',
492 })
493 }
494}
495
496/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected