package errdefs

import "github.com/containerd/nydus-snapshotter/pkg/errdefs"

Index

Variables

var (
	ErrAlreadyExists   = errdefs.ErrAlreadyExists
	ErrNotFound        = errdefs.ErrNotFound
	ErrInvalidArgument = errors.New("invalid argument")
	ErrUnavailable     = errors.New("unavailable")
	ErrNotImplemented  = errors.New("not implemented") // represents not supported and unimplemented
	ErrDeviceBusy      = errors.New("device busy")     // represents not supported and unimplemented
)

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

IsAlreadyExists returns true if the error is due to already exists

func IsConnectionClosed

func IsConnectionClosed(err error) bool

IsConnectionClosed returns true if error is due to connection closed this is used when snapshotter closed by sig term

func IsErofsMounted

func IsErofsMounted(err error) bool

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the error is due to a missing object

Source Files

errors.go

Version
v0.15.1 (latest)
Published
Jan 26, 2025
Platform
js/wasm
Imports
5 packages
Last checked
now

Tools for package owners.