github.com/avfs/avfs@v0.33.1-0.20240303173310-c6ba67c33eb7/errors_custom.go (about) 1 // Code generated by "stringer -type CustomError -linecomment -output errors_custom.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[ErrNegativeOffset-2147483649] 12 _ = x[ErrFileClosing-2147483650] 13 _ = x[ErrPatternHasSeparator-2147483651] 14 _ = x[ErrVolumeAlreadyExists-2147483652] 15 _ = x[ErrVolumeNameInvalid-2147483653] 16 _ = x[ErrVolumeWindows-2147483654] 17 } 18 19 const _CustomError_name = "negative offsetuse of closed filepattern contains path separatorVolume already exists.Volume name is invalid.Volumes are available for Windows only." 20 21 var _CustomError_index = [...]uint8{0, 15, 33, 64, 86, 109, 148} 22 23 func (i CustomError) String() string { 24 i -= 2147483649 25 if i >= CustomError(len(_CustomError_index)-1) { 26 return "CustomError(" + strconv.FormatInt(int64(i+2147483649), 10) + ")" 27 } 28 return _CustomError_name[_CustomError_index[i]:_CustomError_index[i+1]] 29 }