mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-03 22:23:06 +00:00
16 lines
340 B
Nim
16 lines
340 B
Nim
import ../../signer
|
|
|
|
type
|
|
WalletError* = object of SignerError
|
|
|
|
func raiseWalletError*(message: string) {.raises: [WalletError].}=
|
|
raise newException(WalletError, message)
|
|
|
|
template convertError*(body) =
|
|
try:
|
|
body
|
|
except CancelledError as error:
|
|
raise error
|
|
except CatchableError as error:
|
|
raiseWalletError(error.msg)
|