Following exception was thrown while trying to create a PST file in a disk with low space.
class com.aspose.email.system.exceptions.IOException: File was not deleted: F:\test.pst
com.aspose.email.internal.n.ze.b(Unknown Source)
com.aspose.email.PersonalStorage.create(SourceFile:336)
At certain other times, the following exception was thrown.
com.aspose.email.system.exceptions.FileNotFoundException: File not found File: F:\test.pst
File name: ‘F:\test.pst’ —> F:\test.pst (There is not enough space on the disk)
com.aspose.email.internal.ev.zd.(Unknown Source)
com.aspose.email.internal.ev.zd.(Unknown Source)
com.aspose.email.internal.ev.zd.(Unknown Source)
com.aspose.email.system.io.FileStream.(Unknown Source)
com.aspose.email.system.io.FileStream.(Unknown Source)
com.aspose.email.PersonalStorage.create(SourceFile:326)
It would be better if the error messages are consistent and also the PST file that got created was not released properly and hence cannot be accessed by any other program.