mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-09 09:03:08 +00:00
18 lines
498 B
Nim
18 lines
498 B
Nim
import ./basics
|
|
|
|
type
|
|
SolidityError* = object of EthersError
|
|
ContractError* = object of EthersError
|
|
SignerError* = object of EthersError
|
|
SubscriptionError* = object of EthersError
|
|
SubscriptionResult*[E] = Result[E, ref SubscriptionError]
|
|
ProviderError* = object of EthersError
|
|
data*: ?seq[byte]
|
|
|
|
template raiseSignerError*(message: string, parent: ref ProviderError = nil) =
|
|
raise newException(SignerError, message, parent)
|
|
|
|
{.push raises:[].}
|
|
|
|
template errors*(types) {.pragma.}
|