errors

package
v0.0.0-...-c3897c1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Unauthenticated error
	Unauthenticated = errors.New("unauthenticated")

	// InvalidPassword error
	InvalidPassword = errors.New("invalid password")

	// ErrPasswordAreNotEqual error
	ErrPasswordAreNotEqual = errors.New("new password are not equal")

	// ErrValidationToken error
	ErrValidationToken = errors.New("could not validate access token from headers")

	// ErrCreateToken error
	ErrCreateToken = errors.New("got error while creating token")

	// ErrGetByLogin error
	ErrGetByLogin = errors.New("the user was not found")

	// ErrBadRegisterRequest error
	ErrBadRegisterRequest = errors.New("wrong login or password. please try other")

	// ErrCreateUser error
	ErrCreateUser = errors.New("got error while creating user")

	// ErrHashingPassword error
	ErrHashingPassword = errors.New("got error while hashing password")

	// ErrComparingPasswords error
	ErrComparingPasswords = errors.New("got error while comparing passwords")

	// ErrInserting error
	ErrInserting = errors.New("got error while inserting in database")

	// ErrNotAccessible error
	ErrNotAccessible = errors.New("not accessible")

	// ErrNoContent error
	ErrNoContent = errors.New("no content found in db")

	// ErrAlreadyExists error
	ErrAlreadyExists = errors.New("already exist, try other")

	// ErrGetByID error
	ErrGetByID = errors.New("got error while getting by id")

	//ErrTableMigrations error
	ErrTableMigrations = errors.New("migrations failed")

	// ErrBindingRequest error
	ErrBindingRequest = errors.New("could not bind request")

	// ErrNotFound error
	ErrNotFound = errors.New("not found")

	//ErrBadRequestId error
	ErrBadRequestId = errors.New("got error while validating id")

	//ErrInternalServer error
	ErrInternalServer = errors.New("failed to retrieve todo")
)

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