Error Handling - shaovoon/elmaxfilelib GitHub Wiki
Use exception handling to catch all errors. All the thrown exceptions are STL exception types like runtime_error, logic_error and so on. In the catch handler, call GetLastError() to get the error number and error message to determine the exact cause. All functions have the potential to throw exception except for file open, which programmer have to rely on the returned boolean to determine success.