mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-04-02 17:53:07 +00:00
- signer procs raise SignerError, provider procs raise ProviderError - WalletError now inherits from SignerError - move wallet module under signers - create jsonrpo moudle under signers - bump nim-json-rpc for null-handling fixes - All jsonrpc provider tests passing, still need to fix others
15 lines
309 B
Nim
15 lines
309 B
Nim
import ../../basics
|
|
import ../../signer
|
|
|
|
type
|
|
WalletError* = object of SignerError
|
|
|
|
func raiseWalletError*(message: string) {.raises: [WalletError].}=
|
|
raise newException(WalletError, message)
|
|
|
|
template convertError(body) =
|
|
try:
|
|
body
|
|
except CatchableError as error:
|
|
raiseWalletError(error.msg)
|