saldoserviceerror

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 2 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 (
	// ErrFailedCreateSaldo returns a 500 error when creating a saldo record fails.
	ErrFailedCreateSaldo = errors.ErrInternal.WithMessage("Failed to create saldo")

	// ErrFailedUpdateSaldo returns a 500 error when updating a saldo record fails.
	ErrFailedUpdateSaldo = errors.ErrInternal.WithMessage("Failed to update saldo")

	// ErrFailedTrashSaldo returns a 500 error when moving a saldo record to trash fails.
	ErrFailedTrashSaldo = errors.ErrInternal.WithMessage("Failed to move saldo to trash")

	// ErrFailedRestoreSaldo returns a 500 error when restoring a trashed saldo record fails.
	ErrFailedRestoreSaldo = errors.ErrInternal.WithMessage("Failed to restore saldo")

	// ErrFailedDeleteSaldoPermanent returns a 500 error when permanently deleting a saldo record fails.
	ErrFailedDeleteSaldoPermanent = errors.ErrInternal.WithMessage("Failed to delete saldo permanently")

	// ErrFailedRestoreAllSaldo returns a 500 error when restoring all trashed saldo records fails.
	ErrFailedRestoreAllSaldo = errors.ErrInternal.WithMessage("Failed to restore all saldos")

	// ErrFailedDeleteAllSaldoPermanent returns a 500 error when permanently deleting all trashed saldo records fails.
	ErrFailedDeleteAllSaldoPermanent = errors.ErrInternal.WithMessage("Failed to delete all saldos permanently")
)
View Source
var (
	// ErrFailedFindAllSaldos returns a 500 error when fetching all saldo records fails.
	ErrFailedFindAllSaldos = errors.ErrInternal.WithMessage("Failed to fetch saldos")

	// ErrFailedSaldoNotFound returns a 404 error when a requested saldo record is not found.
	ErrFailedSaldoNotFound = errors.ErrNotFound.WithMessage("Saldo not found")

	// ErrFailedFindSaldoByCardNumber returns a 500 error when fetching saldo by card number fails.
	ErrFailedFindSaldoByCardNumber = errors.ErrInternal.WithMessage("Failed to find saldo by card number")

	// ErrFailedFindActiveSaldos returns a 500 error when fetching active saldo records fails.
	ErrFailedFindActiveSaldos = errors.ErrInternal.WithMessage("Failed to fetch active saldos")

	// ErrFailedFindTrashedSaldos returns a 500 error when fetching trashed saldo records fails.
	ErrFailedFindTrashedSaldos = errors.ErrInternal.WithMessage("Failed to fetch trashed saldos")
)
View Source
var ErrFailedFindMonthlySaldoBalances = errors.NewErrorResponse("Failed to fetch monthly saldo balances", http.StatusInternalServerError)

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

View Source
var ErrFailedFindMonthlyTotalSaldoBalance = errors.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 ErrFailedFindYearTotalSaldoBalance = errors.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 = errors.NewErrorResponse("Failed to fetch yearly saldo balances", http.StatusInternalServerError)

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

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

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

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