/
errors.go
39 lines (26 loc) · 1.62 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
30
31
32
33
34
35
36
37
38
39
package interactors
import "errors"
// ErrNilProxy signals that a nil proxy was provided
var ErrNilProxy = errors.New("nil proxy")
// ErrNilTxBuilder signals that a nil transaction builder was provided
var ErrNilTxBuilder = errors.New("nil tx builder")
// ErrInvalidValue signals that an invalid value was provided
var ErrInvalidValue = errors.New("invalid value")
// ErrWrongPassword signals that a wrong password was provided
var ErrWrongPassword = errors.New("wrong password")
// ErrDifferentAccountRecovered signals that a different account was recovered
var ErrDifferentAccountRecovered = errors.New("different account recovered")
// ErrInvalidPemFile signals that an invalid pem file was provided
var ErrInvalidPemFile = errors.New("invalid .PEM file")
// ErrNilAddress signals that the provided address is nil
var ErrNilAddress = errors.New("nil address")
// ErrNilTransaction signals that provided transaction is nil
var ErrNilTransaction = errors.New("nil transaction")
// ErrTxAlreadySent signals that a transaction was already sent
var ErrTxAlreadySent = errors.New("transaction already sent")
// ErrTxWithSameNonceAndGasPriceAlreadySent signals that a transaction with the same nonce & gas price was already sent
var ErrTxWithSameNonceAndGasPriceAlreadySent = errors.New("transaction with the same nonce & gas price was already sent")
// ErrGapNonce signals that a gap nonce between the lowest nonce of the transactions from the cache and the blockchain nonce has been detected
var ErrGapNonce = errors.New("gap nonce detected")
// ErrWorkerClosed signals that the worker is closed
var ErrWorkerClosed = errors.New("worker closed")