saldo_errors

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 5 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.

README

📦 Package saldo_errors

Source Path: shared/errors/saldo_errors

🏷️ Variables

Var:

ErrApiBindCreateSaldo is returned when binding fails for saldo creation.

var ErrApiBindCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create Saldo request", http.StatusBadRequest)
}

Var:

ErrApiBindUpdateSaldo is returned when binding fails for saldo update.

var ErrApiBindUpdateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update Saldo request", http.StatusBadRequest)
}
var ErrApiFailedCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create saldo", http.StatusInternalServerError)
}

Var:

ErrApiFailedDeleteAllSaldoPermanent is returned when permanently deleting all saldos fails.

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

Var:

ErrApiFailedDeleteSaldoPermanent is returned when permanently deleting saldo fails.

var ErrApiFailedDeleteSaldoPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete saldo", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindAllSaldo is returned when fetching all saldo records fails.

var ErrApiFailedFindAllSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all saldos", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindAllSaldoActive is returned when fetching active saldo records fails.

var ErrApiFailedFindAllSaldoActive = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all saldos active", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindAllSaldoTrashed is returned when fetching trashed saldo records fails.

var ErrApiFailedFindAllSaldoTrashed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all saldos trashed", http.StatusInternalServerError)
}
var ErrApiFailedFindByCardNumberSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch saldo by card number", http.StatusInternalServerError)
}
var ErrApiFailedFindByIdSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch saldo by ID", http.StatusInternalServerError)
}
var ErrApiFailedFindMonthlySaldoBalances = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly saldo balances", http.StatusInternalServerError)
}
var ErrApiFailedFindMonthlyTotalSaldoBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly total saldo balance", http.StatusInternalServerError)
}
var ErrApiFailedFindYearTotalSaldoBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly total saldo balance", http.StatusInternalServerError)
}
var ErrApiFailedFindYearlySaldoBalances = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly saldo balances", http.StatusInternalServerError)
}

Var:

ErrApiFailedRestoreAllSaldo is returned when restoring all saldos fails.

var ErrApiFailedRestoreAllSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all saldos", http.StatusInternalServerError)
}

Var:

ErrApiFailedRestoreSaldo is returned when restoring saldo fails.

var ErrApiFailedRestoreSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore saldo", http.StatusInternalServerError)
}

Var:

ErrApiFailedTrashSaldo is returned when soft-deleting saldo fails.

var ErrApiFailedTrashSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to trash saldo", http.StatusInternalServerError)
}
var ErrApiFailedUpdateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update saldo", http.StatusInternalServerError)
}

Var:

ErrApiInvalidCardNumber indicates an invalid card number value in the request.

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

Var:

ErrApiInvalidMonth indicates an invalid month value in the request.

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

Var:

ErrApiInvalidSaldoID indicates an invalid saldo ID in the request.

var ErrApiInvalidSaldoID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid saldo ID", http.StatusBadRequest)
}

Var:

ErrApiInvalidYear indicates an invalid year value in the request.

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

Var:

ErrApiValidateCreateSaldo is returned when validation fails for saldo creation.

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

Var:

ErrApiValidateUpdateSaldo is returned when validation fails for saldo update.

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

Var:

ErrCreateSaldoFailed is returned when creating a saldo record fails.

var ErrCreateSaldoFailed = errors.New("failed to create saldo record")

Var:

ErrDeleteAllSaldosPermanentFailed is returned when permanently deleting all saldo records fails.

var ErrDeleteAllSaldosPermanentFailed = errors.New("failed to delete all saldo records permanently")

Var:

ErrDeleteSaldoPermanentFailed is returned when permanently deleting a saldo record fails.

var ErrDeleteSaldoPermanentFailed = errors.New("failed to delete saldo permanently")

Var:

ErrFailedCreateSaldo returns a 500 error when creating a saldo record fails.

var ErrFailedCreateSaldo = response.NewErrorResponse("Failed to create saldo", http.StatusInternalServerError)

Var:

ErrFailedDeleteAllSaldoPermanent returns a 500 error when permanently deleting all trashed saldo records fails.

var ErrFailedDeleteAllSaldoPermanent = response.NewErrorResponse("Failed to permanently delete all saldos", http.StatusInternalServerError)

Var:

ErrFailedDeleteSaldoPermanent returns a 500 error when permanently deleting a saldo record fails.

var ErrFailedDeleteSaldoPermanent = response.NewErrorResponse("Failed to permanently delete saldo", http.StatusInternalServerError)

Var:

ErrFailedFindActiveSaldos returns a 500 error when fetching active saldo records fails.

var ErrFailedFindActiveSaldos = response.NewErrorResponse("Failed to fetch active saldos", http.StatusInternalServerError)

Var:

ErrFailedFindAllSaldos returns a 500 error when fetching all saldo records fails.

var ErrFailedFindAllSaldos = response.NewErrorResponse("Failed to fetch saldos", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlySaldoBalances returns a 500 error when fetching monthly saldo balances fails.

var ErrFailedFindMonthlySaldoBalances = response.NewErrorResponse("Failed to fetch monthly saldo balances", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTotalSaldoBalance returns a 500 error when fetching monthly total saldo balance fails.

var ErrFailedFindMonthlyTotalSaldoBalance = response.NewErrorResponse("Failed to fetch monthly total saldo balance", http.StatusInternalServerError)

Var:

ErrFailedFindSaldoByCardNumber returns a 500 error when fetching saldo by card number fails.

var ErrFailedFindSaldoByCardNumber = response.NewErrorResponse("Failed to find saldo by card number", http.StatusInternalServerError)

Var:

ErrFailedFindTrashedSaldos returns a 500 error when fetching trashed saldo records fails.

var ErrFailedFindTrashedSaldos = response.NewErrorResponse("Failed to fetch trashed saldos", http.StatusInternalServerError)

Var:

ErrFailedFindYearTotalSaldoBalance returns a 500 error when fetching yearly total saldo balance fails.

var ErrFailedFindYearTotalSaldoBalance = response.NewErrorResponse("Failed to fetch yearly total saldo balance", http.StatusInternalServerError)

Var:

ErrFailedFindYearlySaldoBalances returns a 500 error when fetching yearly saldo balances fails.

var ErrFailedFindYearlySaldoBalances = response.NewErrorResponse("Failed to fetch yearly saldo balances", http.StatusInternalServerError)

Var:

ErrFailedInsuffientBalance returns a 400 error when a transaction is attempted with insufficient balance.

var ErrFailedInsuffientBalance = response.NewErrorResponse("Insufficient balance", http.StatusBadRequest)

Var:

ErrFailedRestoreAllSaldo returns a 500 error when restoring all trashed saldo records fails.

var ErrFailedRestoreAllSaldo = response.NewErrorResponse("Failed to restore all saldos", http.StatusInternalServerError)

Var:

ErrFailedRestoreSaldo returns a 500 error when restoring a trashed saldo record fails.

var ErrFailedRestoreSaldo = response.NewErrorResponse("Failed to restore saldo", http.StatusInternalServerError)

Var:

ErrFailedSaldoNotFound returns a 404 error when a requested saldo record is not found.

var ErrFailedSaldoNotFound = response.NewErrorResponse("Saldo not found", http.StatusNotFound)

Var:

ErrFailedTrashSaldo returns a 500 error when moving a saldo record to trash fails.

var ErrFailedTrashSaldo = response.NewErrorResponse("Failed to trash saldo", http.StatusInternalServerError)

Var:

ErrFailedUpdateSaldo returns a 500 error when updating a saldo record fails.

var ErrFailedUpdateSaldo = response.NewErrorResponse("Failed to update saldo", http.StatusInternalServerError)

Var:

ErrFindActiveSaldosFailed is returned when fetching active saldo records fails.

var ErrFindActiveSaldosFailed = errors.New("failed to find active saldo records")

Var:

ErrFindAllSaldosFailed is returned when fetching all saldo records fails.

var ErrFindAllSaldosFailed = errors.New("failed to find all saldo records")

Var:

ErrFindSaldoByCardNumberFailed is returned when fetching saldo by card number fails.

var ErrFindSaldoByCardNumberFailed = errors.New("failed to find saldo by card number")

Var:

ErrFindSaldoByIdFailed is returned when fetching a saldo by its ID fails.

var ErrFindSaldoByIdFailed = errors.New("failed to find saldo by ID")

Var:

ErrFindTrashedSaldosFailed is returned when fetching trashed saldo records fails.

var ErrFindTrashedSaldosFailed = errors.New("failed to find trashed saldo records")

Var:

ErrGetMonthlySaldoBalancesFailed is returned when fetching monthly saldo balances fails.

var ErrGetMonthlySaldoBalancesFailed = errors.New("failed to get monthly saldo balances")

Var:

ErrGetMonthlyTotalSaldoBalanceFailed is returned when fetching monthly total saldo balance fails.

var ErrGetMonthlyTotalSaldoBalanceFailed = errors.New("failed to get monthly total saldo balance")

Var:

ErrGetYearTotalSaldoBalanceFailed is returned when fetching yearly total saldo balance fails.

var ErrGetYearTotalSaldoBalanceFailed = errors.New("failed to get yearly total saldo balance")

Var:

ErrGetYearlySaldoBalancesFailed is returned when fetching yearly saldo balances fails.

var ErrGetYearlySaldoBalancesFailed = errors.New("failed to get yearly saldo balances")

Var:

ErrRestoreAllSaldosFailed is returned when restoring all trashed saldo records fails.

var ErrRestoreAllSaldosFailed = errors.New("failed to restore all saldo records")

Var:

ErrRestoreSaldoFailed is returned when restoring a trashed saldo record fails.

var ErrRestoreSaldoFailed = errors.New("failed to restore saldo record")

Var:

ErrTrashSaldoFailed is returned when soft-deleting (trashing) a saldo record fails.

var ErrTrashSaldoFailed = errors.New("failed to trash saldo record")

Var:

ErrUpdateSaldoBalanceFailed is returned when updating saldo balance fails.

var ErrUpdateSaldoBalanceFailed = errors.New("failed to update saldo balance")

Var:

ErrUpdateSaldoFailed is returned when updating a saldo record fails.

var ErrUpdateSaldoFailed = errors.New("failed to update saldo record")

Var:

ErrUpdateSaldoWithdrawFailed is returned when updating saldo for a withdrawal fails.

var ErrUpdateSaldoWithdrawFailed = errors.New("failed to update saldo withdrawal")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGrpcSaldoNotFound          = response.NewGrpcError("saldo", "Saldo not found", int(codes.NotFound))
	ErrGrpcSaldoInvalidID         = response.NewGrpcError("saldo", "Invalid Saldo ID", int(codes.InvalidArgument))
	ErrGrpcSaldoInvalidCardNumber = response.NewGrpcError("saldo", "Invalid Saldo Card Number", int(codes.InvalidArgument))
	ErrGrpcSaldoInvalidMonth      = response.NewGrpcError("saldo", "Invalid Saldo Month", int(codes.InvalidArgument))
	ErrGrpcSaldoInvalidYear       = response.NewGrpcError("saldo", "Invalid Saldo Year", int(codes.InvalidArgument))

	ErrGrpcFailedFindAllSaldo     = response.NewGrpcError("saldo", "Failed to fetch all saldo", int(codes.Internal))
	ErrGrpcFailedFindByIdSaldo    = response.NewGrpcError("saldo", "Failed to fetch saldo by ID", int(codes.Internal))
	ErrGrpcFailedFindByCardNumber = response.NewGrpcError("saldo", "Failed to fetch saldo by card number", int(codes.Internal))
	ErrGrpcFailedFindByActive     = response.NewGrpcError("saldo", "Failed to fetch active saldo", int(codes.Internal))
	ErrGrpcFailedFindByTrashed    = response.NewGrpcError("saldo", "Failed to fetch trashed saldo", int(codes.Internal))

	ErrGrpcFailedFindMonthlyTotalSaldoBalance = response.NewGrpcError("saldo", "Failed to fetch monthly total saldo balance", int(codes.Internal))
	ErrGrpcFailedFindYearTotalSaldoBalance    = response.NewGrpcError("saldo", "Failed to fetch yearly total saldo balance", int(codes.Internal))
	ErrGrpcFailedFindMonthlySaldoBalances     = response.NewGrpcError("saldo", "Failed to fetch monthly saldo balances", int(codes.Internal))
	ErrGrpcFailedFindYearlySaldoBalances      = response.NewGrpcError("saldo", "Failed to fetch yearly saldo balances", int(codes.Internal))

	ErrGrpcFailedCreateSaldo   = response.NewGrpcError("saldo", "Failed to create saldo", int(codes.Internal))
	ErrGrpcFailedUpdateSaldo   = response.NewGrpcError("saldo", "Failed to update saldo", int(codes.Internal))
	ErrGrpcValidateCreateSaldo = response.NewGrpcError("saldo", "Invalid input for create saldo", int(codes.InvalidArgument))
	ErrGrpcValidateUpdateSaldo = response.NewGrpcError("saldo", "Invalid input for update saldo", int(codes.InvalidArgument))

	ErrGrpcFailedTrashedSaldo         = response.NewGrpcError("saldo", "Failed to move saldo to trash", int(codes.Internal))
	ErrGrpcFailedRestoreSaldo         = response.NewGrpcError("saldo", "Failed to restore saldo", int(codes.Internal))
	ErrGrpcFailedDeleteSaldoPermanent = response.NewGrpcError("saldo", "Failed to permanently delete saldo", int(codes.Internal))

	ErrGrpcFailedRestoreAllSaldo         = response.NewGrpcError("saldo", "Failed to restore all saldo", int(codes.Internal))
	ErrGrpcFailedDeleteAllSaldoPermanent = response.NewGrpcError("saldo", "Failed to permanently delete all saldo", int(codes.Internal))
)
View Source
var ErrApiBindCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create Saldo request", http.StatusBadRequest)
}

ErrApiBindCreateSaldo is returned when binding fails for saldo creation.

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

ErrApiBindUpdateSaldo is returned when binding fails for saldo update.

View Source
var ErrApiFailedCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create saldo", http.StatusInternalServerError)
}
View Source
var ErrApiFailedDeleteAllSaldoPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all saldos", http.StatusInternalServerError)
}

ErrApiFailedDeleteAllSaldoPermanent is returned when permanently deleting all saldos fails.

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

ErrApiFailedDeleteSaldoPermanent is returned when permanently deleting saldo fails.

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

ErrApiFailedFindAllSaldo is returned when fetching all saldo records fails.

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

ErrApiFailedFindAllSaldoActive is returned when fetching active saldo records fails.

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

ErrApiFailedFindAllSaldoTrashed is returned when fetching trashed saldo records fails.

View Source
var ErrApiFailedFindByCardNumberSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch saldo by card number", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindByIdSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch saldo by ID", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindMonthlySaldoBalances = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly saldo balances", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindMonthlyTotalSaldoBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly total saldo balance", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindYearTotalSaldoBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly total saldo balance", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindYearlySaldoBalances = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly saldo balances", http.StatusInternalServerError)
}
View Source
var ErrApiFailedRestoreAllSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all saldos", http.StatusInternalServerError)
}

ErrApiFailedRestoreAllSaldo is returned when restoring all saldos fails.

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

ErrApiFailedRestoreSaldo is returned when restoring saldo fails.

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

ErrApiFailedTrashSaldo is returned when soft-deleting saldo fails.

View Source
var ErrApiFailedUpdateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update saldo", http.StatusInternalServerError)
}
View Source
var ErrApiInvalidCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card-number value", http.StatusBadRequest)
}

ErrApiInvalidCardNumber indicates an invalid card number value in the request.

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

ErrApiInvalidMonth indicates an invalid month value in the request.

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

ErrApiInvalidSaldoID indicates an invalid saldo ID in the request.

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

ErrApiInvalidYear indicates an invalid year value in the request.

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

ErrApiValidateCreateSaldo is returned when validation fails for saldo creation.

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

ErrApiValidateUpdateSaldo is returned when validation fails for saldo update.

View Source
var ErrCreateSaldoFailed = errors.New("failed to create saldo record")

ErrCreateSaldoFailed is returned when creating a saldo record fails.

View Source
var ErrDeleteAllSaldosPermanentFailed = errors.New("failed to delete all saldo records permanently")

ErrDeleteAllSaldosPermanentFailed is returned when permanently deleting all saldo records fails.

View Source
var ErrDeleteSaldoPermanentFailed = errors.New("failed to delete saldo permanently")

ErrDeleteSaldoPermanentFailed is returned when permanently deleting a saldo record fails.

View Source
var ErrFailedCreateSaldo = response.NewErrorResponse("Failed to create saldo", http.StatusInternalServerError)

ErrFailedCreateSaldo returns a 500 error when creating a saldo record fails.

View Source
var ErrFailedDeleteAllSaldoPermanent = response.NewErrorResponse("Failed to permanently delete all saldos", http.StatusInternalServerError)

ErrFailedDeleteAllSaldoPermanent returns a 500 error when permanently deleting all trashed saldo records fails.

View Source
var ErrFailedDeleteSaldoPermanent = response.NewErrorResponse("Failed to permanently delete saldo", http.StatusInternalServerError)

ErrFailedDeleteSaldoPermanent returns a 500 error when permanently deleting a saldo record fails.

View Source
var ErrFailedFindActiveSaldos = response.NewErrorResponse("Failed to fetch active saldos", http.StatusInternalServerError)

ErrFailedFindActiveSaldos returns a 500 error when fetching active saldo records fails.

View Source
var ErrFailedFindAllSaldos = response.NewErrorResponse("Failed to fetch saldos", http.StatusInternalServerError)

ErrFailedFindAllSaldos returns a 500 error when fetching all saldo records fails.

View Source
var ErrFailedFindMonthlySaldoBalances = response.NewErrorResponse("Failed to fetch monthly saldo balances", http.StatusInternalServerError)

ErrFailedFindMonthlySaldoBalances returns a 500 error when fetching monthly saldo balances fails.

View Source
var ErrFailedFindMonthlyTotalSaldoBalance = response.NewErrorResponse("Failed to fetch monthly total saldo balance", http.StatusInternalServerError)

ErrFailedFindMonthlyTotalSaldoBalance returns a 500 error when fetching monthly total saldo balance fails.

View Source
var ErrFailedFindSaldoByCardNumber = response.NewErrorResponse("Failed to find saldo by card number", http.StatusInternalServerError)

ErrFailedFindSaldoByCardNumber returns a 500 error when fetching saldo by card number fails.

View Source
var ErrFailedFindTrashedSaldos = response.NewErrorResponse("Failed to fetch trashed saldos", http.StatusInternalServerError)

ErrFailedFindTrashedSaldos returns a 500 error when fetching trashed saldo records fails.

View Source
var ErrFailedFindYearTotalSaldoBalance = response.NewErrorResponse("Failed to fetch yearly total saldo balance", http.StatusInternalServerError)

ErrFailedFindYearTotalSaldoBalance returns a 500 error when fetching yearly total saldo balance fails.

View Source
var ErrFailedFindYearlySaldoBalances = response.NewErrorResponse("Failed to fetch yearly saldo balances", http.StatusInternalServerError)

ErrFailedFindYearlySaldoBalances returns a 500 error when fetching yearly saldo balances fails.

View Source
var ErrFailedInsuffientBalance = response.NewErrorResponse("Insufficient balance", http.StatusBadRequest)

ErrFailedInsuffientBalance returns a 400 error when a transaction is attempted with insufficient balance.

View Source
var ErrFailedRestoreAllSaldo = response.NewErrorResponse("Failed to restore all saldos", http.StatusInternalServerError)

ErrFailedRestoreAllSaldo returns a 500 error when restoring all trashed saldo records fails.

View Source
var ErrFailedRestoreSaldo = response.NewErrorResponse("Failed to restore saldo", http.StatusInternalServerError)

ErrFailedRestoreSaldo returns a 500 error when restoring a trashed saldo record fails.

View Source
var ErrFailedSaldoNotFound = response.NewErrorResponse("Saldo not found", http.StatusNotFound)

ErrFailedSaldoNotFound returns a 404 error when a requested saldo record is not found.

View Source
var ErrFailedTrashSaldo = response.NewErrorResponse("Failed to trash saldo", http.StatusInternalServerError)

ErrFailedTrashSaldo returns a 500 error when moving a saldo record to trash fails.

View Source
var ErrFailedUpdateSaldo = response.NewErrorResponse("Failed to update saldo", http.StatusInternalServerError)

ErrFailedUpdateSaldo returns a 500 error when updating a saldo record fails.

View Source
var ErrFindActiveSaldosFailed = errors.New("failed to find active saldo records")

ErrFindActiveSaldosFailed is returned when fetching active saldo records fails.

View Source
var ErrFindAllSaldosFailed = errors.New("failed to find all saldo records")

ErrFindAllSaldosFailed is returned when fetching all saldo records fails.

View Source
var ErrFindSaldoByCardNumberFailed = errors.New("failed to find saldo by card number")

ErrFindSaldoByCardNumberFailed is returned when fetching saldo by card number fails.

View Source
var ErrFindSaldoByIdFailed = errors.New("failed to find saldo by ID")

ErrFindSaldoByIdFailed is returned when fetching a saldo by its ID fails.

View Source
var ErrFindTrashedSaldosFailed = errors.New("failed to find trashed saldo records")

ErrFindTrashedSaldosFailed is returned when fetching trashed saldo records fails.

View Source
var ErrGetMonthlySaldoBalancesFailed = errors.New("failed to get monthly saldo balances")

ErrGetMonthlySaldoBalancesFailed is returned when fetching monthly saldo balances fails.

View Source
var ErrGetMonthlyTotalSaldoBalanceFailed = errors.New("failed to get monthly total saldo balance")

ErrGetMonthlyTotalSaldoBalanceFailed is returned when fetching monthly total saldo balance fails.

View Source
var ErrGetYearTotalSaldoBalanceFailed = errors.New("failed to get yearly total saldo balance")

ErrGetYearTotalSaldoBalanceFailed is returned when fetching yearly total saldo balance fails.

View Source
var ErrGetYearlySaldoBalancesFailed = errors.New("failed to get yearly saldo balances")

ErrGetYearlySaldoBalancesFailed is returned when fetching yearly saldo balances fails.

View Source
var ErrRestoreAllSaldosFailed = errors.New("failed to restore all saldo records")

ErrRestoreAllSaldosFailed is returned when restoring all trashed saldo records fails.

View Source
var ErrRestoreSaldoFailed = errors.New("failed to restore saldo record")

ErrRestoreSaldoFailed is returned when restoring a trashed saldo record fails.

View Source
var ErrTrashSaldoFailed = errors.New("failed to trash saldo record")

ErrTrashSaldoFailed is returned when soft-deleting (trashing) a saldo record fails.

View Source
var ErrUpdateSaldoBalanceFailed = errors.New("failed to update saldo balance")

ErrUpdateSaldoBalanceFailed is returned when updating saldo balance fails.

View Source
var ErrUpdateSaldoFailed = errors.New("failed to update saldo record")

ErrUpdateSaldoFailed is returned when updating a saldo record fails.

View Source
var ErrUpdateSaldoWithdrawFailed = errors.New("failed to update saldo withdrawal")

ErrUpdateSaldoWithdrawFailed is returned when updating saldo for a withdrawal fails.

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