errors

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmptyName

func IsEmptyName(err error) bool

IsEmptyName func

func IsRepoNotExist

func IsRepoNotExist(err error) bool

IsRepoNotExist func

func IsUserNotExist

func IsUserNotExist(err error) bool

IsUserNotExist func

func IsUserNotKeyOwner

func IsUserNotKeyOwner(err error) bool

IsUserNotKeyOwner func

func New

func New(text string) error

New is a wrapper of real errors.New function.

Types

type EmptyName

type EmptyName struct{}

EmptyName struct

func (EmptyName) Error

func (err EmptyName) Error() string

Error func

type RepoNotExist

type RepoNotExist struct {
	ID     int64
	UserID int64
	Name   string
}

RepoNotExist struct

func (RepoNotExist) Error

func (err RepoNotExist) Error() string

Error func

type UserNotExist

type UserNotExist struct {
	UserID int64
	Name   string
}

UserNotExist struct

func (UserNotExist) Error

func (err UserNotExist) Error() string

Error func

type UserNotKeyOwner

type UserNotKeyOwner struct {
	KeyID int64
}

UserNotKeyOwner struct

func (UserNotKeyOwner) Error

func (err UserNotKeyOwner) Error() string

Error func

Jump to

Keyboard shortcuts

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