FileCorruptedException Class |
Thrown during document load, when the document appears to be corrupted and impossible to load.
Inheritance Hierarchy
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax[SerializableAttribute]
public class FileCorruptedException : Exception
<SerializableAttribute>
Public Class FileCorruptedException
Inherits Exception
[SerializableAttribute]
public ref class FileCorruptedException : public Exception
[<SerializableAttribute>]
type FileCorruptedException =
class
inherit Exception
end
The FileCorruptedException type exposes the following members.
Properties
Methods
ExamplesShows how to catch a FileCorruptedException.
try
{
Document doc = new Document(MyDir + "Corrupted document.docx");
}
catch (FileCorruptedException e)
{
Console.WriteLine(e.Message);
}
See Also