40 references to SR
System.IO.FileSystem.Watcher (40)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (18)
142
new FileNotFoundException(
SR
.Format(
SR
.IO_FileNotFound_FileName, path), path) :
143
new FileNotFoundException(
SR
.IO_FileNotFound);
150
new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, path), path) :
154
new DirectoryNotFoundException(
SR
.IO_PathNotFound_NoPathName);
161
new UnauthorizedAccessException(
SR
.Format(
SR
.UnauthorizedAccess_IODenied_Path, path), inner) :
162
new UnauthorizedAccessException(
SR
.UnauthorizedAccess_IODenied_NoPathName, inner);
166
new PathTooLongException(
SR
.Format(
SR
.IO_PathTooLong_Path, path)) :
167
new PathTooLongException(
SR
.IO_PathTooLong);
171
new IOException(
SR
.Format(
SR
.IO_SharingViolation_File, path), errorInfo.RawErrno) :
172
new IOException(
SR
.IO_SharingViolation_NoFileName, errorInfo.RawErrno);
178
return new ArgumentOutOfRangeException("value",
SR
.ArgumentOutOfRange_FileLengthTooBig);
183
return new IOException(
SR
.Format(
SR
.IO_FileExists_Name, path), errorInfo.RawErrno);
System\IO\FileSystemWatcher.cs (14)
116
throw new ArgumentException(
SR
.Format(
SR
.InvalidEnumArgument, nameof(value), (int)value, nameof(NotifyFilters)));
243
throw new ArgumentException(
SR
.Format(
SR
.InvalidDirName, value), nameof(Path));
246
throw new ArgumentException(
SR
.Format(
SR
.InvalidDirName_NotExists, value), nameof(Path));
365
throw new ArgumentException(
SR
.Format(
SR
.InvalidDirName, path), nameof(path));
368
throw new ArgumentException(
SR
.Format(
SR
.InvalidDirName_NotExists, path), nameof(path));
405
=> new InternalBufferOverflowException(
SR
.Format(
SR
.FSW_BufferOverflow, directoryPath));
408
=> new DirectoryNotFoundException(
SR
.Format(
SR
.FSW_WatchedDirectoryDeletedOrMoved, directoryPath));
System\IO\FileSystemWatcher.Linux.cs (8)
159
SR
.Format(
SR
.IOException_INotifyInstanceUserLimitExceeded_Value, maxValue) :
160
SR
.IOException_INotifyInstanceUserLimitExceeded;
163
throw new IOException(
SR
.IOException_INotifyInstanceSystemLimitExceeded, error.RawErrno);
165
throw new PlatformNotSupportedException(
SR
.FileSystemWatcher_PlatformNotSupported);
279
SR
.Format(
SR
.IOException_INotifyWatchesUserLimitExceeded_Value, maxValue) :
280
SR
.IOException_INotifyWatchesUserLimitExceeded;