Yes. A library should never just exit. It would be good if the C++ library defined an error exception (using std::exception as the parent class) and used that to signal errors. You could define several classes if needed, once for a warning and one for a fatal error, for example. Either way, they should all inherit from std::exception.
Yes. A library should never just exit. It would be good if the C++ library defined an error exception (using std::exception as the parent class) and used that to signal errors. You could define several classes if needed, once for a warning and one for a fatal error, for example. Either way, they should all inherit from std::exception.
-- James Gallagher jgallagher@opendap.org