62 instantiations of FileFormatException
PresentationCore (29)
MS\Internal\FontCache\FontCacheUtil.cs (1)
869throw new FileFormatException(new Uri(fileName));
MS\Internal\FontFace\CompositeFontParser.cs (2)
884throw new FileFormatException(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x); 954throw new FileFormatException(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
MS\Internal\FontFace\FontDriver.cs (3)
163throw new FileFormatException(SourceUri, e); 207throw new FileFormatException(SourceUri); 231throw new FileFormatException(SourceUri, e);
MS\Internal\Shaping\OpenTypeCommon.cs (1)
990throw new FileFormatException();
MS\Internal\Shaping\OpenTypeLayout.cs (6)
152if ((offset + 1) >= m_length) throw new FileFormatException(); 159if ((offset + 1) >= m_length) throw new FileFormatException(); 166if ((offset + 3) >= m_length) throw new FileFormatException(); 173if ((offset+1)>=m_length) throw new FileFormatException(); 1253throw new FileFormatException(); 1269throw new FileFormatException();
MS\Internal\Shaping\Substitution.cs (1)
236throw new FileFormatException();
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
28throw new System.IO.FileFormatException();
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (11)
813return new System.IO.FileFormatException(null, SR.Image_UnknownFormat, exceptionForHR); 854return new System.IO.FileFormatException(null, SR.Image_DecoderError, exceptionForHR); 857return new System.IO.FileFormatException(null, SR.Image_HeaderError, exceptionForHR); 887return new System.IO.FileFormatException(null, SR.Image_UnexpectedMetadataType, exceptionForHR); 890return new System.IO.FileFormatException(null, SR.Image_RequestOnlyValidAtMetadataRoot, exceptionForHR); 896return new System.IO.FileFormatException(null, SR.Image_DuplicateMetadataPresent, exceptionForHR); 899return new System.IO.FileFormatException(null, SR.Image_PropertyUnexpectedType, exceptionForHR); 902return new System.IO.FileFormatException(null, SR.Image_TooMuchMetadata, exceptionForHR); 914return new System.IO.FileFormatException(null, SR.Image_InvalidColorContext, exceptionForHR); 945return new System.IO.FileFormatException(SR.Media_FileFormatNotSupported, exceptionForHR); 948return new System.IO.FileFormatException(SR.Media_PlaylistFormatNotSupported, exceptionForHR);
System\Windows\Media\GlyphTypeface.cs (1)
154throw new System.IO.FileFormatException(typefaceSource);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
114throw new FileFormatException(bitmapUri, SR.Image_CantDealWithUri); 158throw new FileFormatException(null, SR.Image_CantDealWithStream);
PresentationFramework (22)
System\Windows\Documents\FixedDocument.cs (3)
892throw new FileFormatException(SR.InvalidDSContentType); 921throw new FileFormatException(SR.InvalidSFContentType); 925throw new FileFormatException(SR.InvalidStoryFragmentsMarkup);
System\Windows\Documents\FixedSchema.cs (14)
55throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedEncoding); 62throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedEncoding); 223throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedRootNamespaceUri); 332throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType); 591throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOnePrintTicketPart); 602throw new FileFormatException(SR.XpsValidatingLoaderPrintTicketHasIncorrectType); 613throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOneThumbnailPart); 625throw new FileFormatException(SR.XpsValidatingLoaderThumbnailHasIncorrectType); 645throw new FileFormatException(SR.XpsValidatingLoaderRestrictedFontHasIncorrectType); 661throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOneDiscardControlInPackage); 672throw new FileFormatException(SR.XpsValidatingLoaderDiscardControlHasIncorrectType); 684throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOneThumbnailInPackage); 696throw new FileFormatException(SR.XpsValidatingLoaderThumbnailHasIncorrectType); 735throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType);
System\Windows\Documents\XPSS0ValidatingLoader.cs (5)
91throw new FileFormatException(SR.XpsValidatingLoaderUriNotInSamePackage); 147throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType); 189throw new FileFormatException(SR.XpsValidatingLoaderDuplicateReference); 217throw new FileFormatException(SR.XpsValidatingLoaderUnlistedResource); 222throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType);
PresentationUI (2)
MS\Internal\Documents\RightsManagementManager.cs (1)
1423new FileFormatException());
MS\Internal\Documents\RightsManagementProvider.cs (1)
1282throw new FileFormatException(
System.IO.Packaging (9)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
571throw new FileFormatException(SR.RelationshipPartIncorrectContentType);
System\IO\Packaging\Package.cs (1)
417throw new FileFormatException(SR.BadPackageFormat);
System\IO\Packaging\PackagingUtilities.cs (1)
53throw new FileFormatException(SR.EncodingNotSupported);
System\IO\Packaging\PartBasedPackageProperties.cs (4)
441throw new FileFormatException(SR.NoExternalTargetForMetadataRelationship); 449throw new FileFormatException(SR.DanglingMetadataRelationship); 454throw new FileFormatException(SR.WrongContentTypeForPropertyPart); 469throw new FileFormatException(SR.MoreThanOneMetadataRelationships);
System\IO\Packaging\ZipPackage.cs (2)
300throw new FileFormatException(SR.ZipZeroSizeFileIsNotValidArchive); 335throw new FileFormatException(SR.FileContainsCorruptedData);
16 references to FileFormatException
PresentationCore (11)
MS\Internal\Shaping\OpenTypeLayout.cs (7)
322catch (FileFormatException) 339catch (FileFormatException) 375catch (FileFormatException) 393catch (FileFormatException) 921catch (FileFormatException) 998catch (FileFormatException) 1127catch (FileFormatException)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
350catch (FileFormatException)
System\Windows\Media\FontFamily.cs (1)
545catch (FileFormatException)
System\Windows\Media\Imaging\BitmapImage.cs (1)
571catch (FileFormatException)
System\Windows\Media\Imaging\BitmapSource.cs (1)
1174catch (FileFormatException)
PresentationFramework (3)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
432catch (FileFormatException ex)
System\Windows\ColorConvertedBitmapExtension.cs (1)
130catch (FileFormatException)
System\Windows\Documents\WpfPayload.cs (1)
346catch (System.IO.FileFormatException)
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
259(exception is System.IO.FileFormatException))
WindowsBase (1)
WindowsBase.cs (1)
10[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileFormatException))]