errexpense

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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