2015-12-26 12:35:15 -06:00
|
|
|
package channeldb
|
2016-03-23 22:11:57 -07:00
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
var (
|
2016-12-13 20:48:49 -08:00
|
|
|
ErrNoChanDBExists = fmt.Errorf("channel db has not yet been created")
|
|
|
|
ErrLinkNodesNotFound = fmt.Errorf("no link nodes exist")
|
2016-06-22 16:17:19 -07:00
|
|
|
|
2016-06-20 21:39:50 -07:00
|
|
|
ErrNoActiveChannels = fmt.Errorf("no active channels exist")
|
2016-06-22 16:17:19 -07:00
|
|
|
ErrChannelNoExist = fmt.Errorf("this channel does not exist")
|
2016-09-02 18:51:34 -07:00
|
|
|
ErrNoPastDeltas = fmt.Errorf("channel has no recorded deltas")
|
2016-09-16 17:23:37 -07:00
|
|
|
|
2016-09-19 11:46:48 -07:00
|
|
|
ErrInvoiceNotFound = fmt.Errorf("unable to locate invoice")
|
|
|
|
ErrNoInvoicesCreated = fmt.Errorf("there are no existing invoices")
|
|
|
|
ErrDuplicateInvoice = fmt.Errorf("invoice with payment hash already exists")
|
2016-10-25 14:04:42 -07:00
|
|
|
|
2016-12-05 06:59:36 -05:00
|
|
|
ErrNoPaymentsCreated = fmt.Errorf("there are no existing payments")
|
|
|
|
|
2016-10-25 14:04:42 -07:00
|
|
|
ErrNodeNotFound = fmt.Errorf("link node with target identity not found")
|
2016-12-07 22:47:01 -08:00
|
|
|
ErrMetaNotFound = fmt.Errorf("unable to locate meta information")
|
|
|
|
|
|
|
|
ErrGraphNotFound = fmt.Errorf("graph bucket not initialized")
|
|
|
|
ErrGraphNodesNotFound = fmt.Errorf("no graph nodes exist")
|
|
|
|
ErrGraphNoEdgesFound = fmt.Errorf("no graph edges exist")
|
|
|
|
ErrGraphNodeNotFound = fmt.Errorf("unable to find node")
|
2016-12-19 16:58:27 -08:00
|
|
|
ErrGraphNeverPruned = fmt.Errorf("graph never pruned")
|
2016-12-07 22:47:01 -08:00
|
|
|
|
|
|
|
ErrEdgeNotFound = fmt.Errorf("edge for chanID not found")
|
|
|
|
|
|
|
|
ErrNodeAliasNotFound = fmt.Errorf("alias for node not found")
|
|
|
|
|
|
|
|
ErrSourceNodeNotSet = fmt.Errorf("source node does not exist")
|
2016-03-23 22:11:57 -07:00
|
|
|
)
|