errs

package
v0.0.0-...-d67b91f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongEmail           = errors.New("incorrect email given")
	ErrEmailAlreadyExists   = errors.New("given email already exists")
	ErrWrongCredentials     = errors.New("wrong credentials have been given")
	ErrTokenValidation      = errors.New("token validation error")
	ErrUnexpectedError      = errors.New("some unexpected error")
	ErrWrongOwnerOrNotFound = errors.New("wrong owner or not found")
)

Functions

func ParseServerError

func ParseServerError(body []byte) string

Types

type GormErr

type GormErr struct {
	Code    string `json:"Code"`
	Message string `json:"Message"`
}

func ParsePostgresErr

func ParsePostgresErr(dbErr error) (newError GormErr)

Jump to

Keyboard shortcuts

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