Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ var (
// (debit/credit) determines the sign of the balance impact.
ErrInvalidAmount = errors.New("amount must be positive")

// ErrSnapshotNotFound is returned when no end-of-day snapshot
// exists for the given account and date.
ErrSnapshotNotFound = errors.New("snapshot not found")

// ErrInsufficientBalance is returned when a hold or transaction
// would cause the available balance to go below zero for account
// types where that is not permitted. Note: this is only enforced
Expand Down
Loading