Documentation
¶
Overview ¶
Package errexpense defines expense-related errors for the application.
It provides a set of predefined errors related to expense not-found, and validation issues. These errors are used throughout the application to handle variours error conditions specfic to expense operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Amount is negative. NegativeAmount = errdmn.NewValidation("Expense.Amount cannot be negative or zero.") // Description is longer than allowed. DescriptionTooLong = errdmn.NewValidation("Expense.Description is too long.") // Description is empty. EmptyDescription = errdmn.NewValidation("Expense.Description cannot be empty.") )
Validation errors
View Source
var (
// Expense is does not exist.
NotFound = errdmn.NewNotFound("Expense not found")
)
NotFound errors
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.