mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
cloudnet: initial version
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
type (
|
||||
errNotFound error
|
||||
errMoreThanOne error
|
||||
)
|
||||
|
||||
func IsNotFound(err error) bool {
|
||||
_, ok := err.(errNotFound)
|
||||
return ok
|
||||
}
|
||||
|
||||
func IsMoreThanOne(err error) bool {
|
||||
_, ok := err.(errMoreThanOne)
|
||||
return ok
|
||||
}
|
||||
Reference in New Issue
Block a user