1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/event/Exception.h,v $ |
* $Source: /home/cvsmanager/yoda/event/Exception.h,v $ |
3 |
* $Id: Exception.h,v 2.1 2004/12/03 22:04:04 kusanagi Exp $ |
* $Id: Exception.h,v 5.1 2006/02/04 12:37:43 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the exceptions of Pamela. |
* Header file for the exceptions of Pamela. |
9 |
#define EXCEPTION_H |
#define EXCEPTION_H |
10 |
#include <exception> |
#include <exception> |
11 |
#include <stdio.h> |
#include <stdio.h> |
12 |
#include "SubPacket.h" |
|
13 |
|
#define UINT32 unsigned int |
14 |
|
#define UINT16 unsigned short |
15 |
|
#define UINT8 unsigned char |
16 |
|
|
17 |
using namespace std; |
using namespace std; |
18 |
namespace pamela { |
namespace pamela { |
30 |
virtual const char* print () const throw () { return message; } |
virtual const char* print () const throw () { return message; } |
31 |
}; |
}; |
32 |
|
|
33 |
|
class NotFoundEnvironmentVarException: public Exception { |
34 |
|
public: |
35 |
|
NotFoundEnvironmentVarException::NotFoundEnvironmentVarException(const char* msg): Exception(msg) {} |
36 |
|
NotFoundEnvironmentVarException::~NotFoundEnvironmentVarException () throw(){ } |
37 |
|
}; |
38 |
|
|
39 |
class UnidentifiedPacketException: public Exception { |
class UnidentifiedPacketException: public Exception { |
40 |
private: |
private: |
41 |
UINT8 pktId; |
UINT8 pktId; |
83 |
NotExistingCounterException::~NotExistingCounterException () throw(){ } |
NotExistingCounterException::~NotExistingCounterException () throw(){ } |
84 |
}; |
}; |
85 |
|
|
86 |
|
class BackwardCounterException: public Exception { |
87 |
|
public: |
88 |
|
BackwardCounterException::BackwardCounterException(const char *msg): Exception(msg) { } |
89 |
|
BackwardCounterException::~BackwardCounterException () throw(){ } |
90 |
|
}; |
91 |
} |
} |
92 |
#endif /* EXCEPTION_H */ |
#endif /* EXCEPTION_H */ |