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