cardrepositoryerrors

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrGetMonthlyTopupAmountFailed is returned when fetching monthly top-up amounts fails.
	ErrGetMonthlyTopupAmountFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup amount")

	// ErrGetYearlyTopupAmountFailed is returned when fetching yearly top-up amounts fails.
	ErrGetYearlyTopupAmountFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup amount")

	// ErrGetMonthlyWithdrawAmountFailed is returned when fetching monthly withdrawal amounts fails.
	ErrGetMonthlyWithdrawAmountFailed = errors.ErrInternal.WithMessage("Failed to get monthly withdraw amount")

	// ErrGetYearlyWithdrawAmountFailed is returned when fetching yearly withdrawal amounts fails.
	ErrGetYearlyWithdrawAmountFailed = errors.ErrInternal.WithMessage("Failed to get yearly withdraw amount")

	// ErrGetMonthlyTransactionAmountFailed is returned when fetching monthly transaction amounts fails.
	ErrGetMonthlyTransactionAmountFailed = errors.ErrInternal.WithMessage("Failed to get monthly transaction amount")

	// ErrGetYearlyTransactionAmountFailed is returned when fetching yearly transaction amounts fails.
	ErrGetYearlyTransactionAmountFailed = errors.ErrInternal.WithMessage("Failed to get yearly transaction amount")

	// ErrGetMonthlyTransferAmountSenderFailed is returned when fetching monthly transfer amounts by sender fails.
	ErrGetMonthlyTransferAmountSenderFailed = errors.ErrInternal.WithMessage("Failed to get monthly transfer amount by sender")

	// ErrGetYearlyTransferAmountSenderFailed is returned when fetching yearly transfer amounts by sender fails.
	ErrGetYearlyTransferAmountSenderFailed = errors.ErrInternal.WithMessage("Failed to get yearly transfer amount by sender")

	// ErrGetMonthlyTransferAmountReceiverFailed is returned when fetching monthly transfer amounts by receiver fails.
	ErrGetMonthlyTransferAmountReceiverFailed = errors.ErrInternal.WithMessage("Failed to get monthly transfer amount by receiver")

	// ErrGetYearlyTransferAmountReceiverFailed is returned when fetching yearly transfer amounts by receiver fails.
	ErrGetYearlyTransferAmountReceiverFailed = errors.ErrInternal.WithMessage("Failed to get yearly transfer amount by receiver")
)
View Source
var (
	// ErrGetMonthlyTopupAmountByCardFailed is returned when fetching monthly top-up amounts by card fails.
	ErrGetMonthlyTopupAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup amount by card")

	// ErrGetYearlyTopupAmountByCardFailed is returned when fetching yearly top-up amounts by card fails.
	ErrGetYearlyTopupAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup amount by card")

	// ErrGetMonthlyWithdrawAmountByCardFailed is returned when fetching monthly withdrawal amounts by card fails.
	ErrGetMonthlyWithdrawAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly withdraw amount by card")

	// ErrGetYearlyWithdrawAmountByCardFailed is returned when fetching yearly withdrawal amounts by card fails.
	ErrGetYearlyWithdrawAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly withdraw amount by card")

	// ErrGetMonthlyTransactionAmountByCardFailed is returned when fetching monthly transaction amounts by card fails.
	ErrGetMonthlyTransactionAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly transaction amount by card")

	// ErrGetYearlyTransactionAmountByCardFailed is returned when fetching yearly transaction amounts by card fails.
	ErrGetYearlyTransactionAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly transaction amount by card")

	// ErrGetMonthlyTransferAmountBySenderFailed is returned when fetching monthly transfer amount by sender fails.
	ErrGetMonthlyTransferAmountBySenderFailed = errors.ErrInternal.WithMessage("Failed to get monthly transfer amount by sender")

	// ErrGetYearlyTransferAmountBySenderFailed is returned when fetching yearly transfer amount by sender fails.
	ErrGetYearlyTransferAmountBySenderFailed = errors.ErrInternal.WithMessage("Failed to get yearly transfer amount by sender")

	// ErrGetMonthlyTransferAmountByReceiverFailed is returned when fetching monthly transfer amount by receiver fails.
	ErrGetMonthlyTransferAmountByReceiverFailed = errors.ErrInternal.WithMessage("Failed to get monthly transfer amount by receiver")

	// ErrGetYearlyTransferAmountByReceiverFailed is returned when fetching yearly transfer amount by receiver fails.
	ErrGetYearlyTransferAmountByReceiverFailed = errors.ErrInternal.WithMessage("Failed to get yearly transfer amount by receiver")
)
View Source
var (
	// ErrGetMonthlyBalanceFailed is returned when fetching monthly balances fails.
	ErrGetMonthlyBalanceFailed = errors.ErrInternal.WithMessage("Failed to get monthly balance")

	// ErrGetYearlyBalanceFailed is returned when fetching yearly balances fails.
	ErrGetYearlyBalanceFailed = errors.ErrInternal.WithMessage("Failed to get yearly balance")

	// ErrGetMonthlyBalanceByCardFailed is returned when fetching monthly balances by card fails.
	ErrGetMonthlyBalanceByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly balance by card")

	// ErrGetYearlyBalanceByCardFailed is returned when fetching yearly balances by card fails.
	ErrGetYearlyBalanceByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly balance by card")
)
View Source
var (
	// ErrCreateCardFailed is returned when creating a new card fails.
	ErrCreateCardFailed = errors.ErrInternal.WithMessage("Failed to create card")

	// ErrUpdateCardFailed is returned when updating a card fails.
	ErrUpdateCardFailed = errors.ErrInternal.WithMessage("Failed to update card")

	// ErrTrashCardFailed is returned when trashing a card fails.
	ErrTrashCardFailed = errors.ErrInternal.WithMessage("Failed to move card to trash")

	// ErrRestoreCardFailed is returned when restoring a trashed card fails.
	ErrRestoreCardFailed = errors.ErrInternal.WithMessage("Failed to restore card from trash")

	// ErrDeleteCardPermanentFailed is returned when permanently deleting a card fails.
	ErrDeleteCardPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete card")

	// ErrRestoreAllCardsFailed is returned when restoring all trashed cards fails.
	ErrRestoreAllCardsFailed = errors.ErrInternal.WithMessage("Failed to restore all cards")

	// ErrDeleteAllCardsPermanentFailed is returned when permanently deleting all cards fails.
	ErrDeleteAllCardsPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete all cards")
)
View Source
var (
	// ErrInvalidCardRequest is returned when the card request data is invalid.
	ErrInvalidCardRequest = errors.ErrBadRequest.WithMessage("Invalid card request data")

	// ErrInvalidCardId is returned when the card ID is invalid.
	ErrInvalidCardId = errors.ErrBadRequest.WithMessage("Invalid card ID")

	// ErrInvalidUserId is returned when the user ID is invalid.
	ErrInvalidUserId = errors.ErrBadRequest.WithMessage("Invalid user ID")

	// ErrInvalidCardNumber is returned when the card number is invalid.
	ErrInvalidCardNumber = errors.ErrBadRequest.WithMessage("Invalid card number")
)
View Source
var (
	// ErrFindAllCardsFailed is returned when fetching all card records fails.
	ErrFindAllCardsFailed = errors.ErrInternal.WithMessage("Failed to find all cards")

	// ErrFindActiveCardsFailed is returned when fetching active card records fails.
	ErrFindActiveCardsFailed = errors.ErrInternal.WithMessage("Failed to find active cards")

	// ErrFindTrashedCardsFailed is returned when fetching trashed card records fails.
	ErrFindTrashedCardsFailed = errors.ErrInternal.WithMessage("Failed to find trashed cards")

	// ErrFindCardByIdFailed is returned when fetching a card by its ID fails.
	ErrFindCardByIdFailed = errors.ErrInternal.WithMessage("Failed to find card by ID")

	// ErrFindCardByUserIdFailed is returned when fetching a card by user ID fails.
	ErrFindCardByUserIdFailed = errors.ErrInternal.WithMessage("Failed to find card by user ID")

	// ErrFindCardByCardNumberFailed is returned when fetching a card by card number fails.
	ErrFindCardByCardNumberFailed = errors.ErrInternal.WithMessage("Failed to find card by card number")

	// ErrCardAlreadyExists is returned when a card already exists.
	ErrCardAlreadyExists = errors.ErrConflict.WithMessage("Card already exists")

	// ErrCardNotFound is returned when a card is not found.
	ErrCardNotFound = errors.ErrNotFound.WithMessage("Card not found")

	// ErrFindUserCardByCardNumberFailed is returned when fetching a card by user and card number fails.
	ErrFindUserCardByCardNumberFailed = errors.ErrInternal.WithMessage("Failed to find card by user ID")
)
View Source
var (
	// ErrGetTotalBalancesFailed is returned when fetching total balances fails.
	ErrGetTotalBalancesFailed = errors.ErrInternal.WithMessage("Failed to get total balances")

	// ErrGetTotalTopAmountFailed is returned when fetching the total top-up amount fails.
	ErrGetTotalTopAmountFailed = errors.ErrInternal.WithMessage("Failed to get total topup amount")

	// ErrGetTotalWithdrawAmountFailed is returned when fetching the total withdrawal amount fails.
	ErrGetTotalWithdrawAmountFailed = errors.ErrInternal.WithMessage("Failed to get total withdraw amount")

	// ErrGetTotalTransactionAmountFailed is returned when fetching the total transaction amount fails.
	ErrGetTotalTransactionAmountFailed = errors.ErrInternal.WithMessage("Failed to get total transaction amount")

	// ErrGetTotalTransferAmountFailed is returned when fetching the total transfer amount fails.
	ErrGetTotalTransferAmountFailed = errors.ErrInternal.WithMessage("Failed to get total transfer amount")

	// ErrGetTotalBalanceByCardFailed is returned when fetching the total balance by card fails.
	ErrGetTotalBalanceByCardFailed = errors.ErrInternal.WithMessage("Failed to get total balance by card")

	// ErrGetTotalTopupAmountByCardFailed is returned when fetching the total top-up amount by card fails.
	ErrGetTotalTopupAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get total topup amount by card")

	// ErrGetTotalWithdrawAmountByCardFailed is returned when fetching the total withdrawal amount by card fails.
	ErrGetTotalWithdrawAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get total withdraw amount by card")

	// ErrGetTotalTransactionAmountByCardFailed is returned when fetching the total transaction amount by card fails.
	ErrGetTotalTransactionAmountByCardFailed = errors.ErrInternal.WithMessage("Failed to get total transaction amount by card")

	// ErrGetTotalTransferAmountBySenderFailed is returned when fetching the total transfer amount by sender fails.
	ErrGetTotalTransferAmountBySenderFailed = errors.ErrInternal.WithMessage("Failed to get total transfer amount by sender")

	// ErrGetTotalTransferAmountByReceiverFailed is returned when fetching the total transfer amount by receiver fails.
	ErrGetTotalTransferAmountByReceiverFailed = errors.ErrInternal.WithMessage("Failed to get total transfer amount by receiver")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL