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

Method constructor

src/errors/rpc.ts:424–430  ·  view source on GitHub ↗
(cause: Error, { method }: { method?: string } = {})

Source from the content-addressed store, hash-verified

422 static code = 4200 as const
423
424 constructor(cause: Error, { method }: { method?: string } = {}) {
425 super(cause, {
426 code: UnsupportedProviderMethodError.code,
427 name: 'UnsupportedProviderMethodError',
428 shortMessage: `The Provider does not support the requested method${method ? ` " ${method}"` : ''}.`,
429 })
430 }
431}
432
433/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected