HEAVY: finish music service migration, tidy up services, more tests
This commit is contained in:
parent
9e311df462
commit
90a671982c
47 changed files with 2698 additions and 902 deletions
16
errors/notexist.go
Normal file
16
errors/notexist.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package errors
|
||||
|
||||
type NotExistError struct {
|
||||
query string
|
||||
}
|
||||
func NewNotExistError(query string) *NotExistError {
|
||||
return &NotExistError{ query: query }
|
||||
}
|
||||
func (err *NotExistError) Error() string {
|
||||
return err.query
|
||||
}
|
||||
func IsNotExistError(err error) bool {
|
||||
_, ok := err.(*NotExistError)
|
||||
return ok
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue