-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.go
More file actions
20 lines (17 loc) · 698 Bytes
/
error.go
File metadata and controls
20 lines (17 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package fs
// Enumeration of errors that may be returned by file system operations.
const (
ErrCtimeMismatch = fsError("modification time occurs before creation time")
ErrIsDir = fsError("is a directory")
ErrInvalidEntryType = fsError("entry type is invalid")
ErrMtimeMismatch = fsError("modification time is invalid")
ErrNotDir = fsError("not a directory")
ErrNotFile = fsError("not a file")
ErrTooLarge = fsError("too large")
)
// fsError defines the type for errors that may be returned by file system operations.
type fsError string
// Error returns the cause of the file system error.
func (e fsError) Error() string {
return string(e)
}