26 references to SR
System.IO.FileSystem.DriveInfo (26)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (18)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound); 134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName); 145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner); 150new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 151new PathTooLongException(SR.IO_PathTooLong); 155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
System\IO\DriveInfo.Unix.cs (2)
98throw new DriveNotFoundException(SR.Format(SR.IO_DriveNotFound_Drive, Name)); // match Win32
System\IO\DriveInfo.UnixOrDefault.cs (3)
29throw new ArgumentException(SR.Format(SR.Arg_InvalidDriveChars, driveName), nameof(driveName)); 33throw new ArgumentException(SR.Arg_MustBeNonEmptyDriveName, nameof(driveName));
System\IO\DriveNotFoundException.cs (3)
15: base(SR.IO_DriveNotFound) 21: base(message ?? SR.IO_DriveNotFound) 27: base(message ?? SR.IO_DriveNotFound, innerException)