MS\Internal\FontCache\FontCacheUtil.cs (9)
771throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName);
774throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName));
777throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName));
780throw new PathTooLongException(SR.Format(SR.PathTooLongExceptionWithFileName, fileName));
783throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode));
799return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e);
865throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
881throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
885throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (7)
797throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), "value");
805throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), "value");
813throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), "value");
862throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), "value");
869throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), "value");
893throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), "value");
906throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), "value");
MS\Internal\TextFormatting\FullTextLine.cs (5)
322TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr);
641TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr);
2172TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.EnumLineFailure, lserr), lserr);
2477TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
2534TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
System\Windows\Media\GlyphRun.cs (6)
427throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), "clusterMap");
433throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), "clusterMap");
440throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), "caretStops");
466throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), "glyphIndices");
472throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "advanceWidths");
475throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "glyphOffsets");