LastException
PdfFileEditor.LastException property
Obtient la dernière exception survenue. Peut être utilisé pour vérifier la raison de l’échec.
public Exception LastException { get; }
Exemples
PdfFileEditor pfe = new PdfFileEditor();
if (!pfe.TryConcatenate("file1.pdf", "file2.pdf", "file3.pdf"))
{
Console.WriteLine("Error occured:");
if (pfe.LastException != null)
{
Console.WriteLine(pfe.LastException.Message);
if (pfe.LastException.InnerException != null)
Console.WriteLine(pfe.LastException.InnerException.Message);
}
}
Voir également
- class PdfFileEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF