PdfFileEditor.LastException
PdfFileEditor.LastException property
Gets last occured exception. May be used to check the reason of failure.
public Exception LastException { get; }
Examples
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);
}
}
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF