errors

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalServerError = errors.New("internal server error")

Functions

func IsBranchAlreadyExists

func IsBranchAlreadyExists(err error) bool

func IsEmailNotFound

func IsEmailNotFound(err error) bool

func IsEmailNotVerified

func IsEmailNotVerified(err error) bool

func IsInvalidRepoReference

func IsInvalidRepoReference(err error) bool

func IsMirrorNotExist

func IsMirrorNotExist(err error) bool

func New

func New(text string) error

New is a wrapper of real errors.New function.

Types

type BranchAlreadyExists

type BranchAlreadyExists struct {
	Name string
}

func (BranchAlreadyExists) Error

func (err BranchAlreadyExists) Error() string

type EmailNotFound

type EmailNotFound struct {
	Email string
}

func (EmailNotFound) Error

func (err EmailNotFound) Error() string

type EmailNotVerified

type EmailNotVerified struct {
	Email string
}

func (EmailNotVerified) Error

func (err EmailNotVerified) Error() string

type InvalidRepoReference

type InvalidRepoReference struct {
	Ref string
}

func (InvalidRepoReference) Error

func (err InvalidRepoReference) Error() string

type MirrorNotExist

type MirrorNotExist struct {
	RepoID int64
}

func (MirrorNotExist) Error

func (err MirrorNotExist) Error() string

Jump to

Keyboard shortcuts

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