Free Support Forum -

Documentation of thrown exceptions in C++

Where can I find documentation on exceptions that are thrown by Aspose class methods (eg. Factory::CreateIWorkbook(“nonexistingfile”);)?
There is no description on possible exceptions in the API reference and also not in the documentation or in the header file comments.

We have reviewed your requirement and have logged it in our database for further processing. We will update you here once documents are updated and uploaded for public access.

This requirement is logged as:
CELLSCPP-266 - Documentation required for thrown exceptions in C++


We will optimize the relevant API Reference document in the next version. At present, you can do coding as follows:

try {
intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook( "yourFile.xlsx");

catch (Exception e  )
{        Console::WriteLine( e.GetMessageExp() );//print exception information    }

Hope, this helps a bit.