github.com/shoshinnikita/budget-manager@v0.7.1-0.20220131195411-8c46ff1c6778/internal/db/errors.go (about) 1 package db 2 3 import ( 4 "errors" 5 ) 6 7 // Common errors 8 var ( 9 ErrMonthNotExist = errors.New("such Month doesn't exist") 10 ErrDayNotExist = errors.New("such Day doesn't exist") 11 ErrIncomeNotExist = errors.New("such Income doesn't exist") 12 ErrMonthlyPaymentNotExist = errors.New("such Monthly Payment doesn't exist") 13 ErrSpendNotExist = errors.New("such Spend doesn't exist") 14 ErrSpendTypeNotExist = errors.New("such Spend Type doesn't exist") 15 ErrSpendTypeIsUsed = errors.New("Spend Type is used by Monthly Payment or Spend") 16 )