mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-03 22:23:06 +00:00
Converts specific errors to RpcNetworkError, which can be bubbled to applications at a higher level and retried on the network (eg with exponential backoff) until resolved or timed out.
9 lines
177 B
Nim
9 lines
177 B
Nim
import ../../signer
|
|
|
|
type
|
|
WalletError* = object of SignerError
|
|
|
|
func raiseWalletError*(message: string) {.raises: [WalletError].}=
|
|
raise newException(WalletError, message)
|
|
|