Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Apply the default settings of 'smpi/buffering' too
[simgrid.git] / src / mc / mc_exit.hpp
1 /* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_MC_EXIT_HPP
7 #define SIMGRID_MC_EXIT_HPP
8 #include "xbt/base.h"
9 #include <exception>
10
11 constexpr int SIMGRID_MC_EXIT_SUCCESS         = 0;
12 constexpr int SIMGRID_MC_EXIT_SAFETY          = 1;
13 constexpr int SIMGRID_MC_EXIT_LIVENESS        = 2;
14 constexpr int SIMGRID_MC_EXIT_DEADLOCK        = 3;
15 constexpr int SIMGRID_MC_EXIT_NON_TERMINATION = 4;
16 constexpr int SIMGRID_MC_EXIT_NON_DETERMINISM = 5;
17 constexpr int SIMGRID_MC_EXIT_PROGRAM_CRASH   = 6;
18
19 constexpr int SIMGRID_MC_EXIT_ERROR           = 63;
20
21 namespace simgrid {
22 namespace mc {
23 class XBT_PUBLIC DeadlockError : public std::exception {
24 };
25 class XBT_PUBLIC TerminationError : public std::exception {
26 };
27 class XBT_PUBLIC LivenessError : public std::exception {
28 };
29 }
30 }
31
32 #endif