MS\Internal\FontCache\FontCacheUtil.cs (9)
748throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName);
751throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName));
754throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName));
757throw new PathTooLongException(SR.Format(SR.PathTooLongExceptionWithFileName, fileName));
760throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode));
776return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e);
833throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
849throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
853throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (7)
780throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), nameof(value));
788throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), nameof(value));
796throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), nameof(value));
845throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), nameof(value));
852throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), nameof(value));
876throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), nameof(value));
889throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), nameof(value));
MS\Internal\TextFormatting\FullTextLine.cs (5)
308TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr);
627TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr);
2158TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.EnumLineFailure, lserr), lserr);
2463TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
2520TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
System\Windows\Media\GlyphRun.cs (6)
398throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), nameof(clusterMap));
404throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), nameof(clusterMap));
411throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), nameof(caretStops));
437throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), nameof(glyphIndices));
443throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), nameof(advanceWidths));
446throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), nameof(glyphOffsets));