You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
702 B

#include "storm/utility/macros.h"
#include "storm/exceptions/BaseException.h"
#include "storm-cli-utilities/cli.h"
/*!
* Main entry point of the executable storm.
*/
int main(const int argc, const char** argv) {
try {
return storm::cli::process(argc, argv);
} catch (storm::exceptions::BaseException const& exception) {
STORM_LOG_ERROR("An exception caused Storm to terminate. The message of the exception is: " << exception.what());
return 1;
} catch (std::exception const& exception) {
STORM_LOG_ERROR("An unexpected exception occurred and caused Storm to terminate. The message of this exception is: " << exception.what());
return 2;
}
}