seException
The general exception class thrown from failed methods.
Exception contains two pieces of information:
- Error code (FILE_ERROR, TRANSMITTAL_UNACCESSIBLE, etc)
- Description string (freeform)
Must be caught at the application/library level code, otherwise application will exit.
- Gives ability to clean up after the API encounters an error.
wksp::openTransmittalByFile( “bad_path.stf”, xmtl )
cout << “Exception was thrown: “ << e.getWhat << “(code: “ << e.getCode() << “)” << endl;
// clean up application memory and continue