common

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInsufficientFunds

type ErrInsufficientFunds float64 // rises when a user has insufficient funds. The value is the amount of funds required.

Domain errors. These types are used to identify the error cause.

func (ErrInsufficientFunds) Error

func (e ErrInsufficientFunds) Error() string

type ErrNegativeCurrency

type ErrNegativeCurrency float64 // rises when a user tries to pass a negative amount.

Domain errors. These types are used to identify the error cause.

func (ErrNegativeCurrency) Error

func (e ErrNegativeCurrency) Error() string

type ErrUserAlreadyExists

type ErrUserAlreadyExists uint64 // rises when a user with the given ID is already exists

Repository errors. These types are used to identify the error cause in service layer when a repository fails.

func (ErrUserAlreadyExists) Error

func (e ErrUserAlreadyExists) Error() string

type ErrUserNotFound

type ErrUserNotFound uint64 // rises when a user with the given ID was not found

Repository errors. These types are used to identify the error cause in service layer when a repository fails.

func (ErrUserNotFound) Error

func (e ErrUserNotFound) Error() string

Jump to

Keyboard shortcuts

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