aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/errors.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-07 18:47:34 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-13 20:00:07 +0800
commitfad5eb0a87abfc12812647344a26de8a43830182 (patch)
treea679f37933a85edade15ee69b385b6705cc94043 /accounts/errors.go
parentb3c0e9d3ccb0bb326646aea47dda391a9552b122 (diff)
downloadgo-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.tar
go-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.tar.gz
go-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.tar.bz2
go-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.tar.lz
go-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.tar.xz
go-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.tar.zst
go-tangerine-fad5eb0a87abfc12812647344a26de8a43830182.zip
accounts, cmd, eth, internal, miner, node: wallets and HD APIs
Diffstat (limited to 'accounts/errors.go')
-rw-r--r--accounts/errors.go29
1 files changed, 28 insertions, 1 deletions
diff --git a/accounts/errors.go b/accounts/errors.go
index d6f578b52..9ecc1eafd 100644
--- a/accounts/errors.go
+++ b/accounts/errors.go
@@ -16,7 +16,34 @@
package accounts
-import "fmt"
+import (
+ "errors"
+ "fmt"
+)
+
+// ErrUnknownAccount is returned for any requested operation for which no backend
+// provides the specified account.
+var ErrUnknownAccount = errors.New("unknown account")
+
+// ErrUnknownWallet is returned for any requested operation for which no backend
+// provides the specified wallet.
+var ErrUnknownWallet = errors.New("unknown wallet")
+
+// ErrNotSupported is returned when an operation is requested from an account
+// backend that it does not support.
+var ErrNotSupported = errors.New("not supported")
+
+// ErrInvalidPassphrase is returned when a decryption operation receives a bad
+// passphrase.
+var ErrInvalidPassphrase = errors.New("invalid passphrase")
+
+// ErrWalletAlreadyOpen is returned if a wallet is attempted to be opened the
+// secodn time.
+var ErrWalletAlreadyOpen = errors.New("wallet already open")
+
+// ErrWalletClosed is returned if a wallet is attempted to be opened the
+// secodn time.
+var ErrWalletClosed = errors.New("wallet closed")
// AuthNeededError is returned by backends for signing requests where the user
// is required to provide further authentication before signing can succeed.