-
Notifications
You must be signed in to change notification settings - Fork 211
/
errors.go
29 lines (27 loc) · 1.26 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package core
import "errors"
var (
// ErrInternal raised on any unexpected error due to internal conditions.
// Most likely due to the disk failures.
ErrInternal = errors.New("internal")
// ErrMalformed raised if transaction cannot be decoded properly.
ErrMalformed = errors.New("malformed tx")
// ErrInvalidNonce raised due to the expected nonce mismatch.
ErrInvalidNonce = errors.New("invalid nonce")
// ErrNoBalance raised if transaction run out of balance during execution.
ErrNoBalance = errors.New("no balance")
// ErrOutOfGas raised if account doesn't have enough funds to cover gas during execution.
ErrOutOfGas = errors.New("out of gas")
// ErrMaxGas raised if tx consumed over MaxGas value.
ErrMaxGas = errors.New("max gas")
// ErrMaxSpend raised if tx transferred over MaxSpend value.
ErrMaxSpend = errors.New("max spend")
// ErrSpawned raised if account already spawned.
ErrSpawned = errors.New("account already spawned")
// ErrNotSpawned raised if account is not spawned.
ErrNotSpawned = errors.New("account is not spawned")
// ErrTemplateMismatch raised if target account doesn't match template account.
ErrTemplateMismatch = errors.New("relay template mismatch")
// ErrTxLimit overflows max tx size.
ErrTxLimit = errors.New("overflows tx limit")
)