LastException
PdfFileEditor.LastException property
Ottiene l’ultima eccezione verificatasi. Può essere utilizzato per verificare il motivo dell’errore.
public Exception LastException { get; }
Esempi
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);
}
}
Guarda anche
- class PdfFileEditor
- spazio dei nomi Aspose.Pdf.Facades
- assemblea Aspose.PDF