2022-06-06 13:48:53 +00:00
|
|
|
package driver
|
|
|
|
|
2022-06-15 11:10:11 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
pkgerr "github.com/pkg/errors"
|
|
|
|
)
|
2022-06-06 13:48:53 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
ErrorObjectNotFound = errors.New("object not found")
|
2022-06-07 14:02:41 +00:00
|
|
|
ErrNotImplement = errors.New("not implement")
|
|
|
|
ErrNotSupport = errors.New("not support")
|
|
|
|
ErrRelativePath = errors.New("access using relative path is not allowed")
|
2022-06-06 13:48:53 +00:00
|
|
|
)
|
2022-06-15 11:10:11 +00:00
|
|
|
|
|
|
|
func IsErrObjectNotFound(err error) bool {
|
|
|
|
return pkgerr.Cause(err) == ErrorObjectNotFound
|
|
|
|
}
|