DiaDes  0.1
DIAgnosis of Discrete-Event System
PetriNetException.hh
Go to the documentation of this file.
1 #ifndef __DIADES__PETRI__PETRINET_EXCEPTION_HH_
2 #define __DIADES__PETRI__PETRINET_EXCEPTION_HH_
3 #include <stdexcept>
4 #include <iostream>
5 
6 using namespace std;
7 
8 namespace Diades {
9 namespace Petri {
10 
14 class PetriNetInvalid : public runtime_error, public domain_error {
15 public:
19  PetriNetInvalid(const string& whatArg) : runtime_error(whatArg), domain_error(whatArg){
20  cerr << "EXCEPTION Petri Net -> " << whatArg << endl;
21  }
22 };
23 
27 class MarkingGraphInvalid : public runtime_error, public domain_error {
28 public:
32  MarkingGraphInvalid(const string& whatArg) : runtime_error(whatArg), domain_error(whatArg){
33  cerr << "EXCEPTION MarkingGraph -> " << whatArg << endl;
34  }
35 };
36 
37 
38 };
39 };
40 
41 #endif /*PETRINET_EXCEPTION_HH_*/
STL namespace.
MarkingGraphInvalid(const string &whatArg)
PetriNetInvalid(const string &whatArg)
Namespace of the Diades project.