com.aspose.words
Class FileCorruptedException

java.lang.Exception
    extended by com.aspose.words.FileCorruptedException

public class FileCorruptedException 
extends java.lang.Exception

Thrown during document load, when the document appears to be corrupted and impossible to load.

Example:

Shows how to catch a FileCorruptedException
try {
    Document doc = new Document(getMyDir() + "Corrupted.docx");
} catch (FileCorruptedException e) {
    System.out.println(e.getMessage());
}

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.