feat(account): #49 refactor error handling
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m19s
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m19s
This commit is contained in:
10
db/error.go
Normal file
10
db/error.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNotFound = errors.New("the value does not exist")
|
||||
ErrAlreadyExists = errors.New("row already exists")
|
||||
)
|
||||
Reference in New Issue
Block a user