domain

package
v0.0.0-...-d25be1a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NotFound error indicates a missing / not found record
	NotFound = errors.New("not found")

	// ValidationError indicates an error in input validation
	ValidationError = errors.New("validation error")

	// ResourceAlreadyExists indicates a duplicate / already existing record
	ResourceAlreadyExists = errors.New("resource already exists")

	// RepositoryError indicates a repository (e.g database) error
	RepositoryError = errors.New("repository error")

	// NotAuthenticated indicates an authentication error
	NotAuthenticated = errors.New("not Authenticated")

	// NotAuthorized indicates an authorization error
	NotAuthorized = errors.New("not authorized")

	// UnknownError indicates an error that the app cannot find the cause for
	UnknownError = errors.New("unknown error")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Err error
}

func NewError

func NewError(err error, extraErr ...error) *Error

func (Error) Error

func (e Error) Error() string

func (Error) Unwrap

func (e Error) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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