errors.go

 1package proto
 2
 3import (
 4	"errors"
 5)
 6
 7var (
 8	// ErrUnauthorized is returned when the user is not authorized to perform action.
 9	ErrUnauthorized = errors.New("unauthorized")
10	// ErrInvalidRemote is returned when a repository import remote is invalid.
11	ErrInvalidRemote = errors.New("remote must be a network URL")
12	// ErrFileNotFound is returned when the file is not found.
13	ErrFileNotFound = errors.New("file not found")
14	// ErrRepoNotFound is returned when a repository is not found.
15	ErrRepoNotFound = errors.New("repository not found")
16	// ErrRepoExist is returned when a repository already exists.
17	ErrRepoExist = errors.New("repository already exists")
18	// ErrUserNotFound is returned when a user is not found.
19	ErrUserNotFound = errors.New("user not found")
20	// ErrTokenNotFound is returned when a token is not found.
21	ErrTokenNotFound = errors.New("token not found")
22	// ErrTokenExpired is returned when a token is expired.
23	ErrTokenExpired = errors.New("token expired")
24	// ErrCollaboratorNotFound is returned when a collaborator is not found.
25	ErrCollaboratorNotFound = errors.New("collaborator not found")
26	// ErrCollaboratorExist is returned when a collaborator already exists.
27	ErrCollaboratorExist = errors.New("collaborator already exists")
28)