26 references to SR
System.IO.FileSystem.DriveInfo (26)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (18)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 143new FileNotFoundException(SR.IO_FileNotFound); 150new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 154new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName); 161new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 162new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner); 166new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 167new PathTooLongException(SR.IO_PathTooLong); 171new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 172new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 178return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig); 183return 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)