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

  1. #include "storm/utility/macros.h"
  2. #include "storm/exceptions/BaseException.h"
  3. #include "storm-cli-utilities/cli.h"
  4. /*!
  5. * Main entry point of the executable storm.
  6. */
  7. int main(const int argc, const char** argv) {
  8. try {
  9. return storm::cli::process(argc, argv);
  10. } catch (storm::exceptions::BaseException const& exception) {
  11. STORM_LOG_ERROR("An exception caused Storm to terminate. The message of the exception is: " << exception.what());
  12. return 1;
  13. } catch (std::exception const& exception) {
  14. STORM_LOG_ERROR("An unexpected exception occurred and caused Storm to terminate. The message of this exception is: " << exception.what());
  15. return 2;
  16. }
  17. }