aboutsummaryrefslogtreecommitdiff
path: root/internal/db/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/error.go')
-rw-r--r--internal/db/error.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/db/error.go b/internal/db/error.go
index ba07ca87..d1668d99 100644
--- a/internal/db/error.go
+++ b/internal/db/error.go
@@ -15,32 +15,6 @@ import (
// |______//____ >\___ >__|
// \/ \/
-type ErrUserAlreadyExist struct {
- Name string
-}
-
-func IsErrUserAlreadyExist(err error) bool {
- _, ok := err.(ErrUserAlreadyExist)
- return ok
-}
-
-func (err ErrUserAlreadyExist) Error() string {
- return fmt.Sprintf("user already exists [name: %s]", err.Name)
-}
-
-type ErrEmailAlreadyUsed struct {
- Email string
-}
-
-func IsErrEmailAlreadyUsed(err error) bool {
- _, ok := err.(ErrEmailAlreadyUsed)
- return ok
-}
-
-func (err ErrEmailAlreadyUsed) Error() string {
- return fmt.Sprintf("e-mail has been used [email: %s]", err.Email)
-}
-
type ErrUserOwnRepos struct {
UID int64
}