github.com/avfs/avfs@v0.33.1-0.20240303173310-c6ba67c33eb7/errors_forwindows.go (about) 1 // Code generated by "stringer -type WindowsError -linecomment -output errors_forwindows.go"; DO NOT EDIT. 2 3 package avfs 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[ErrWinAccessDenied-5] 12 _ = x[ErrWinAlreadyExists-183] 13 _ = x[ErrWinBadNetPath-53] 14 _ = x[ErrWinDirNameInvalid-267] 15 _ = x[ErrWinDirNotEmpty-145] 16 _ = x[ErrWinFileExists-80] 17 _ = x[ErrWinFileNotFound-2] 18 _ = x[ErrWinIncorrectFunc-1] 19 _ = x[ErrWinIsADirectory-21] 20 _ = x[ErrWinNegativeSeek-131] 21 _ = x[ErrWinNotReparsePoint-4390] 22 _ = x[ErrWinInvalidHandle-6] 23 _ = x[ErrWinSharingViolation-32] 24 _ = x[ErrWinNotSupported-536871042] 25 _ = x[ErrWinPathNotFound-3] 26 _ = x[ErrWinPrivilegeNotHeld-1314] 27 } 28 29 const _WindowsError_name = "Incorrect function.The system cannot find the file specified.The system cannot find the path specified.Access is denied.The handle is invalid.is a directoryThe process cannot access the file because it is being used by another process.Bad network path.The file exists.An attempt was made to move the file pointer before the beginning of the file.The directory is not empty.Cannot create a file when that file already exists.The directory name is invalid.A required privilege is not held by the client.The file or directory is not a reparse point.not supported by windows" 30 31 var _WindowsError_map = map[WindowsError]string{ 32 1: _WindowsError_name[0:19], 33 2: _WindowsError_name[19:61], 34 3: _WindowsError_name[61:103], 35 5: _WindowsError_name[103:120], 36 6: _WindowsError_name[120:142], 37 21: _WindowsError_name[142:156], 38 32: _WindowsError_name[156:235], 39 53: _WindowsError_name[235:252], 40 80: _WindowsError_name[252:268], 41 131: _WindowsError_name[268:346], 42 145: _WindowsError_name[346:373], 43 183: _WindowsError_name[373:424], 44 267: _WindowsError_name[424:454], 45 1314: _WindowsError_name[454:501], 46 4390: _WindowsError_name[501:546], 47 536871042: _WindowsError_name[546:570], 48 } 49 50 func (i WindowsError) String() string { 51 if str, ok := _WindowsError_map[i]; ok { 52 return str 53 } 54 return "WindowsError(" + strconv.FormatInt(int64(i), 10) + ")" 55 }