Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Inherit from std::exception.
[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
10 constexpr int SIMGRID_MC_EXIT_SUCCESS         = 0;
11 constexpr int SIMGRID_MC_EXIT_SAFETY          = 1;
12 constexpr int SIMGRID_MC_EXIT_LIVENESS        = 2;
13 constexpr int SIMGRID_MC_EXIT_DEADLOCK        = 3;
14 constexpr int SIMGRID_MC_EXIT_NON_TERMINATION = 4;
15 constexpr int SIMGRID_MC_EXIT_NON_DETERMINISM = 5;
16 constexpr int SIMGRID_MC_EXIT_PROGRAM_CRASH   = 6;
17
18 constexpr int SIMGRID_MC_EXIT_ERROR           = 63;
19
20 namespace simgrid {
21 namespace mc {
22 class XBT_PUBLIC DeadlockError : public std::exception {
23 };
24 class XBT_PUBLIC TerminationError : public std::exception {
25 };
26 class XBT_PUBLIC LivenessError : public std::exception {
27 };
28 }
29 }
30
31 #endif