{"modulePath":"github.com/devfans/gogs","version":"v0.11.53","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc IsBranchAlreadyExists(err error) bool\n```\n\n```go\nfunc IsEmailNotFound(err error) bool\n```\n\n```go\nfunc IsEmailNotVerified(err error) bool\n```\n\n```go\nfunc IsEmptyName(err error) bool\n```\n\n```go\nfunc IsErrBranchNotExist(err error) bool\n```\n\n```go\nfunc IsHookTaskNotExist(err error) bool\n```\n\n```go\nfunc IsInvalidIssueReference(err error) bool\n```\n\n```go\nfunc IsInvalidLoginSourceType(err error) bool\n```\n\n```go\nfunc IsInvalidRepoReference(err error) bool\n```\n\n```go\nfunc IsIssueNotExist(err error) bool\n```\n\n```go\nfunc IsLoginSourceMismatch(err error) bool\n```\n\n```go\nfunc IsLoginSourceNotActivated(err error) bool\n```\n\n```go\nfunc IsLoginSourceNotExist(err error) bool\n```\n\n```go\nfunc IsMirrorNotExist(err error) bool\n```\n\n```go\nfunc IsReachLimitOfRepo(err error) bool\n```\n\n```go\nfunc IsRepoNotExist(err error) bool\n```\n\n```go\nfunc IsTwoFactorNotFound(err error) bool\n```\n\n```go\nfunc IsTwoFactorRecoveryCodeNotFound(err error) bool\n```\n\n```go\nfunc IsUserNotExist(err error) bool\n```\n\n```go\nfunc IsUserNotKeyOwner(err error) bool\n```\n\n```go\nfunc IsWebhookNotExist(err error) bool\n```\n\n```go\nfunc New(text string) error\n```\nNew is a wrapper of real errors.New function.\n\n## Types\n\n```go\ntype BranchAlreadyExists struct {\n\tName string\n}\n```\n\n```go\nfunc (err BranchAlreadyExists) Error() string\n```\n\n```go\ntype EmailNotFound struct {\n\tEmail string\n}\n```\n\n```go\nfunc (err EmailNotFound) Error() string\n```\n\n```go\ntype EmailNotVerified struct {\n\tEmail string\n}\n```\n\n```go\nfunc (err EmailNotVerified) Error() string\n```\n\n```go\ntype EmptyName struct{}\n```\n\n```go\nfunc (err EmptyName) Error() string\n```\n\n```go\ntype ErrBranchNotExist struct {\n\tName string\n}\n```\n\n```go\nfunc (err ErrBranchNotExist) Error() string\n```\n\n```go\ntype HookTaskNotExist struct {\n\tHookID int64\n\tUUID   string\n}\n```\n\n```go\nfunc (err HookTaskNotExist) Error() string\n```\n\n```go\ntype InvalidIssueReference struct {\n\tRef string\n}\n```\n\n```go\nfunc (err InvalidIssueReference) Error() string\n```\n\n```go\ntype InvalidLoginSourceType struct {\n\tType interface{}\n}\n```\n\n```go\nfunc (err InvalidLoginSourceType) Error() string\n```\n\n```go\ntype InvalidRepoReference struct {\n\tRef string\n}\n```\n\n```go\nfunc (err InvalidRepoReference) Error() string\n```\n\n```go\ntype IssueNotExist struct {\n\tID     int64\n\tRepoID int64\n\tIndex  int64\n}\n```\n\n```go\nfunc (err IssueNotExist) Error() string\n```\n\n```go\ntype LoginSourceMismatch struct {\n\tExpect int64\n\tActual int64\n}\n```\n\n```go\nfunc (err LoginSourceMismatch) Error() string\n```\n\n```go\ntype LoginSourceNotActivated struct {\n\tSourceID int64\n}\n```\n\n```go\nfunc (err LoginSourceNotActivated) Error() string\n```\n\n```go\ntype LoginSourceNotExist struct {\n\tID int64\n}\n```\n\n```go\nfunc (err LoginSourceNotExist) Error() string\n```\n\n```go\ntype MirrorNotExist struct {\n\tRepoID int64\n}\n```\n\n```go\nfunc (err MirrorNotExist) Error() string\n```\n\n```go\ntype ReachLimitOfRepo struct {\n\tLimit int\n}\n```\n\n```go\nfunc (err ReachLimitOfRepo) Error() string\n```\n\n```go\ntype RepoNotExist struct {\n\tID     int64\n\tUserID int64\n\tName   string\n}\n```\n\n```go\nfunc (err RepoNotExist) Error() string\n```\n\n```go\ntype TwoFactorNotFound struct {\n\tUserID int64\n}\n```\n\n```go\nfunc (err TwoFactorNotFound) Error() string\n```\n\n```go\ntype TwoFactorRecoveryCodeNotFound struct {\n\tCode string\n}\n```\n\n```go\nfunc (err TwoFactorRecoveryCodeNotFound) Error() string\n```\n\n```go\ntype UserNotExist struct {\n\tUserID int64\n\tName   string\n}\n```\n\n```go\nfunc (err UserNotExist) Error() string\n```\n\n```go\ntype UserNotKeyOwner struct {\n\tKeyID int64\n}\n```\n\n```go\nfunc (err UserNotKeyOwner) Error() string\n```\n\n```go\ntype WebhookNotExist struct {\n\tID int64\n}\n```\n\n```go\nfunc (err WebhookNotExist) Error() string\n```\n\n","path":"github.com/devfans/gogs/models/errors","name":"errors","synopsis":"","isRedistributable":true}
