Skip to content

Commit 7dbd072

Browse files
committed
paymentsdb: add new internal error
1 parent ebfa0ef commit 7dbd072

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

payments/db/errors.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,8 @@ var (
130130
// NOTE: Only used for the kv backend.
131131
ErrNoSequenceNrIndex = errors.New("payment sequence number index " +
132132
"does not exist")
133+
134+
// errMaxPaymentsReached is used internally to signal that the maximum
135+
// number of payments has been reached during a paginated query.
136+
errMaxPaymentsReached = errors.New("max payments reached")
133137
)

0 commit comments

Comments
 (0)