cardapierrors

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 3 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 ErrApiBindCreateCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create Card request", http.StatusBadRequest)
}

ErrApiBindCreateCard represents binding error for create card request.

View Source
var ErrApiBindUpdateCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update Card request", http.StatusBadRequest)
}

ErrApiBindUpdateCard represents binding error for update card request.

View Source
var ErrApiFailedCreateCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create card", http.StatusInternalServerError)
}

ErrApiFailedCreateCard represents error when failing to create a new card.

View Source
var ErrApiFailedDashboardCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch card dashboard", http.StatusInternalServerError)
}

ErrApiFailedDashboardCard returns a 500 Internal Server Error when fetching the card dashboard fails.

View Source
var ErrApiFailedDashboardCardByCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch dashboard by card number", http.StatusInternalServerError)
}

ErrApiFailedDashboardCardByCardNumber returns a 500 Internal Server Error when fetching the dashboard by card number fails.

View Source
var ErrApiFailedDeleteAllCardPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all cards", http.StatusInternalServerError)
}

ErrApiFailedDeleteAllCardPermanent represents error when failing to permanently delete all trashed cards.

View Source
var ErrApiFailedDeleteCardPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete card", http.StatusInternalServerError)
}

ErrApiFailedDeleteCardPermanent represents error when failing to permanently delete a card.

View Source
var ErrApiFailedFindAllCards = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all cards", http.StatusInternalServerError)
}

ErrApiFailedFindAllCards returns a 500 Internal Server Error when fetching all cards fails.

View Source
var ErrApiFailedFindByActiveCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch active cards", http.StatusInternalServerError)
}

ErrApiFailedFindByActiveCard represents error when failing to fetch active cards.

View Source
var ErrApiFailedFindByCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch card by card number", http.StatusInternalServerError)
}

ErrApiFailedFindByCardNumber represents error when failing to fetch card by card number.

View Source
var ErrApiFailedFindByIdCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch card by ID", http.StatusInternalServerError)
}

ErrApiFailedFindByIdCard returns a 500 Internal Server Error when fetching a card by ID fails.

View Source
var ErrApiFailedFindByTrashedCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch trashed cards", http.StatusInternalServerError)
}

ErrApiFailedFindByTrashedCard represents error when failing to fetch trashed cards.

View Source
var ErrApiFailedFindByUserIdCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch card by user ID", http.StatusInternalServerError)
}

ErrApiFailedFindByUserIdCard represents error when failing to fetch cards by user ID.

View Source
var ErrApiFailedFindMonthlyBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly balance", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyBalance returns an API error response when fetching the monthly balance fails.

View Source
var ErrApiFailedFindMonthlyBalanceByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly balance by card", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyBalanceByCard returns an API error response when fetching the monthly balance by card fails.

View Source
var ErrApiFailedFindMonthlyTopupAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly topup amount", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTopupAmount returns an API error response when fetching the monthly top-up amount fails.

View Source
var ErrApiFailedFindMonthlyTopupAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly topup amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTopupAmountByCard returns an API error response when fetching the monthly top-up amount by card fails.

View Source
var ErrApiFailedFindMonthlyTransactionAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transaction amount", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransactionAmount returns an API error response when fetching the monthly transaction amount fails.

View Source
var ErrApiFailedFindMonthlyTransactionAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transaction amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransactionAmountByCard returns an API error response when fetching the monthly transaction amount by card fails.

View Source
var ErrApiFailedFindMonthlyTransferReceiverAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer receiver amount", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferReceiverAmount returns an API error response when fetching the monthly transfer receiver amount fails.

View Source
var ErrApiFailedFindMonthlyTransferReceiverAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer receiver amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferReceiverAmountByCard represents error when failing to fetch monthly transfer amount by receiver card.

View Source
var ErrApiFailedFindMonthlyTransferSenderAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer sender amount", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferSenderAmount returns an API error response when fetching the monthly transfer sender amount fails.

View Source
var ErrApiFailedFindMonthlyTransferSenderAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer sender amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferSenderAmountByCard represents error when failing to fetch monthly transfer amount by sender card.

View Source
var ErrApiFailedFindMonthlyWithdrawAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly withdraw amount", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyWithdrawAmount returns an API error response when fetching the monthly withdrawal amount fails.

View Source
var ErrApiFailedFindMonthlyWithdrawAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly withdraw amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyWithdrawAmountByCard returns an API error response when fetching the monthly withdrawal amount by card fails.

View Source
var ErrApiFailedFindYearlyBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly balance", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyBalance returns an API error response when fetching the yearly balance fails.

View Source
var ErrApiFailedFindYearlyBalanceByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly balance by card", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyBalanceByCard returns an API error response when fetching the yearly balance by card fails.

View Source
var ErrApiFailedFindYearlyTopupAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly topup amount", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTopupAmount returns an API error response when fetching the yearly top-up amount fails.

View Source
var ErrApiFailedFindYearlyTopupAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly topup amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTopupAmountByCard returns an API error response when fetching the yearly top-up amount by card fails.

View Source
var ErrApiFailedFindYearlyTransactionAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transaction amount", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransactionAmount returns an API error response when fetching the yearly transaction amount fails.

View Source
var ErrApiFailedFindYearlyTransactionAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transaction amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransactionAmountByCard returns an API error response when fetching the yearly transaction amount by card fails.

View Source
var ErrApiFailedFindYearlyTransferReceiverAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer receiver amount", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferReceiverAmount returns an API error response when fetching the yearly transfer receiver amount fails.

View Source
var ErrApiFailedFindYearlyTransferReceiverAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer receiver amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferReceiverAmountByCard represents error when failing to fetch yearly transfer amount by receiver card.

View Source
var ErrApiFailedFindYearlyTransferSenderAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer sender amount", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferSenderAmount returns an API error response when fetching the yearly transfer sender amount fails.

View Source
var ErrApiFailedFindYearlyTransferSenderAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer sender amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferSenderAmountByCard represents error when failing to fetch yearly transfer amount by sender card.

View Source
var ErrApiFailedFindYearlyWithdrawAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly withdraw amount", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyWithdrawAmount returns an API error response when fetching the yearly withdrawal amount fails.

View Source
var ErrApiFailedFindYearlyWithdrawAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly withdraw amount by card", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyWithdrawAmountByCard returns an API error response when fetching the yearly withdrawal amount by card fails.

View Source
var ErrApiFailedRestoreAllCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all cards", http.StatusInternalServerError)
}

ErrApiFailedRestoreAllCard represents error when failing to restore all trashed cards.

View Source
var ErrApiFailedRestoreCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore card", http.StatusInternalServerError)
}

ErrApiFailedRestoreCard represents error when failing to restore a trashed card.

View Source
var ErrApiFailedTrashCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to trash card", http.StatusInternalServerError)
}

ErrApiFailedTrashCard represents error when failing to move a card to trash.

View Source
var ErrApiFailedUpdateCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update card", http.StatusInternalServerError)
}

ErrApiFailedUpdateCard represents error when failing to update a card.

View Source
var ErrApiInvalidCardID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card ID", http.StatusBadRequest)
}

ErrApiInvalidCardID returns a 400 Bad Request error when the card ID is invalid.

View Source
var ErrApiInvalidCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card number", http.StatusBadRequest)
}

ErrApiInvalidCardNumber returns a 400 Bad Request error when the card number is invalid.

View Source
var ErrApiInvalidMonth = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest)
}

ErrApiInvalidMonth returns a 400 Bad Request error when the month value is invalid.

View Source
var ErrApiInvalidUserID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid user ID", http.StatusBadRequest)
}

ErrApiInvalidUserID returns a 400 Bad Request error when the user ID is invalid.

View Source
var ErrApiInvalidYear = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest)
}

ErrApiInvalidYear returns a 400 Bad Request error when the year value is invalid.

View Source
var ErrApiValidateCreateCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid create Card request", http.StatusBadRequest)
}

ErrApiValidateCreateCard represents validation error for create card request.

View Source
var ErrApiValidateUpdateCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid update Card request", http.StatusBadRequest)
}

ErrApiValidateUpdateCard represents validation error for update card request.

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