Documentation ¶
Overview ¶
Package errors defines a set of annotations to be used when translating between fs.PathError and non-Go error values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.ErrUnsupported
Functions ¶
Types ¶
type Error ¶
Error wraps a fs.PathError with an error Kind.
type Kind ¶
type Kind uint8
Kind specifies a type of error.
const ( Other Kind = iota // Unclassified error. InvalidItem // Invalid operation for the item being operated on. InvalidOperation // Operation itself is not valid within the system. Permission // Permission denied. IO // External I/O error such as network failure. Exist // Item already exists. NotExist // Item does not exist. IsDir // Item is a directory. NotDir // Item is not a directory. NotEmpty // Directory not empty. ReadOnly // File system has no modification capabilities. )
Click to show internal directories.
Click to hide internal directories.