errs

package
v3.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotImplement = errors.New("not implement")
	NotSupport   = errors.New("not support")
	RelativePath = errors.New("access using relative path is not allowed")

	MoveBetweenTwoStorages = errors.New("can't move files between two storages, try to copy")
	UploadNotSupported     = errors.New("upload not supported")

	MetaNotFound     = errors.New("meta not found")
	StorageNotFound  = errors.New("storage not found")
	StreamIncomplete = errors.New("upload/download stream incomplete, possible network issue")
	StreamPeekFail   = errors.New("StreamPeekFail")
)
View Source
var (
	ObjectNotFound = errors.New("object not found")
	NotFolder      = errors.New("not a folder")
	NotFile        = errors.New("not a file")
)
View Source
var (
	EmptyUsername      = errors.New("username is empty")
	EmptyPassword      = errors.New("password is empty")
	WrongPassword      = errors.New("password is incorrect")
	DeleteAdminOrGuest = errors.New("cannot delete admin or guest")
)
View Source
var (
	EmptyToken = errors.New("empty token")
)
View Source
var (
	PermissionDenied = errors.New("permission denied")
)
View Source
var (
	SearchNotAvailable = fmt.Errorf("search not available")
)

Functions

func IsNotFoundError added in v3.25.0

func IsNotFoundError(err error) bool

func IsObjectNotFound

func IsObjectNotFound(err error) bool

func NewErr added in v3.25.0

func NewErr(err error, format string, a ...any) error

NewErr wrap constant error with an extra message use errors.Is(err1, StorageNotFound) to check if err belongs to any internal error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL