-
Notifications
You must be signed in to change notification settings - Fork 8
/
errors.go
33 lines (25 loc) · 1.27 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
// Copyright (c) 2017 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package loader
import "errors"
var (
// ErrWalletLoaded describes the error condition of attempting to load or
// create a wallet when the loader has already done so.
ErrWalletLoaded = errors.New("wallet already loaded")
// ErrWalletNotLoaded describes the error condition of attempting to close
// a loaded wallet when a wallet has not been loaded.
ErrWalletNotLoaded = errors.New("wallet is not loaded")
// ErrWalletExists describes the error condition of attempting to create a
// new wallet when one exists already.
ErrWalletExists = errors.New("wallet already exists")
// ErrTicketBuyerStarted describes the error condition of attempting to
// start ticketbuyer when it is already started.
ErrTicketBuyerStarted = errors.New("ticketbuyer already started")
// ErrTicketBuyerStopped describes the error condition of attempting to
// stop ticketbuyer when it is already stopped.
ErrTicketBuyerStopped = errors.New("ticketbuyer not running")
// ErrNoChainClient describes the error condition of attempting to start
// ticketbuyer when no chain client is available.
ErrNoChainClient = errors.New("chain client not available")
)