42 references to SR
System.Console (42)
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); 133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName); 141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner); 146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong); 151new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 152new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig); 163return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
39throw new InvalidOperationException(SR.PersistedFiles_NoHomeDirectory);
System\Console.cs (3)
163throw new InvalidOperationException(SR.InvalidOperation_ConsoleKeyAvailableOnFile); 554throw new ArgumentOutOfRangeException(nameof(left), left, SR.ArgumentOutOfRange_ConsoleBufferBoundaries); 556throw new ArgumentOutOfRangeException(nameof(top), top, SR.ArgumentOutOfRange_ConsoleBufferBoundaries);
System\ConsoleKeyInfo.cs (1)
22throw new ArgumentOutOfRangeException(nameof(key), SR.ArgumentOutOfRange_ConsoleKey);
System\ConsolePal.Unix.cs (2)
136throw new InvalidOperationException(SR.InvalidOperation_ConsoleReadKeyOnFile); 761throw new ArgumentException(SR.Arg_InvalidConsoleColor);
System\IO\Error.cs (4)
10return new ObjectDisposedException(null, SR.ObjectDisposed_FileClosed); 15return new NotSupportedException(SR.NotSupported_UnreadableStream); 20return new NotSupportedException(SR.NotSupported_UnseekableStream); 25return new NotSupportedException(SR.NotSupported_UnwritableStream);
System\IO\SyncTextReader.cs (2)
125throw new ArgumentException(SR.Argument_InvalidOffLen); 137throw new ArgumentException(SR.Argument_InvalidOffLen);
System\TermInfo.cs (6)
167throw new InvalidOperationException(SR.IO_TermInfoInvalid); 307throw new InvalidOperationException(SR.IO_TermInfoInvalid); 329throw new InvalidOperationException(SR.IO_TermInfoInvalid); 366throw new InvalidOperationException(SR.InvalidOperation_PrintF); 378throw new InvalidOperationException(SR.InvalidOperation_PrintF); 403else throw new InvalidOperationException(SR.IO_TermInfoInvalid);
System\TermInfo.Database.cs (3)
53throw new InvalidOperationException(SR.Format(SR.IO_TermInfoInvalidMagicNumber, "O" + Convert.ToString(magic, 8))); // magic number was not recognized. Printing the magic number in octal. 67throw new InvalidOperationException(SR.IO_TermInfoInvalid);
System\TermInfo.DatabaseFactory.cs (2)
125throw new InvalidOperationException(SR.IO_TermInfoInvalid); 135throw new InvalidOperationException(SR.IO_TermInfoInvalid);