Exception Summary Exception Description InvalidFormatException InvalidOperationExceptionThrow when an invalid operation is done. NotOfficeXmlFileExceptionThis exception is thrown when we try to open a file that doesn't seem to actually be an OOXML (Office Open XML) file after all ODFNotOfficeXmlFileExceptionThis exception is thrown when we are given an ODF-based file (eg OpenOffice .ods) instead of an actually OOXML (Office Open XML) file OLE2NotOfficeXmlFileExceptionThis exception is thrown when we are given an OLE2-based file (eg Excel .xls) instead of an actually OOXML (Office Open XML) file OpenXML4JExceptionGlobal exception throws when a critical error occurs. OpenXML4JRuntimeExceptionGlobal exception throws when a critical error occurs (this exception is set as Runtime in order not to force the user to manage the exception in a try/catch). PartAlreadyExistsExceptionThrow when trying to create a
PackagePartbut one already exists with that name.