(Event+Time).Variant Operators  2.3
Operators for Timed Discrete Event Systems in Dioids
testException.h
1 #ifndef TESTEXCEPTION_H
2 #define TESTEXCEPTION_H
3 #include <string>
4 #include<exception>
5 
6 namespace test
7 {
8 
9 class testException: virtual public std::exception
10 {
11 private:
12  unsigned _num;
13  std::string _msg;
14 public:
15  explicit testException(unsigned num,const std::string & msg);
16  unsigned Num() const;
17  std::string Message() const;
18 
19  virtual const char* what() const throw () {
20  return _msg.c_str();
21  }
22 
23  virtual ~testException() throw () {}
24 };
25 }
26 
27 #endif // ETVOEXCEPTION_H
Definition: testException.h:9
Definition: Test.cpp:18