--- yoda/event/Exception.h 2005/01/11 14:58:20 2.2 +++ yoda/event/Exception.h 2006/02/04 12:37:43 5.1 @@ -1,7 +1,7 @@ /** @file * $Source: /home/cvsmanager/yoda/event/Exception.h,v $ - * $Id: Exception.h,v 2.1 2004/12/03 22:04:04 kusanagi Exp $ - * $Author: kusanagi $ + * $Id: Exception.h,v 5.0 2005/08/29 09:45:48 Maurizio Nagni Exp $ + * $Author: Maurizio Nagni $ * * Header file for the exceptions of Pamela. */ @@ -9,7 +9,10 @@ #define EXCEPTION_H #include #include -#include "SubPacket.h" + +#define UINT32 unsigned int +#define UINT16 unsigned short +#define UINT8 unsigned char using namespace std; namespace pamela { @@ -27,6 +30,12 @@ virtual const char* print () const throw () { return message; } }; + class NotFoundEnvironmentVarException: public Exception { + public: + NotFoundEnvironmentVarException::NotFoundEnvironmentVarException(const char* msg): Exception(msg) {} + NotFoundEnvironmentVarException::~NotFoundEnvironmentVarException () throw(){ } + }; + class UnidentifiedPacketException: public Exception { private: UINT8 pktId; @@ -74,5 +83,10 @@ NotExistingCounterException::~NotExistingCounterException () throw(){ } }; + class BackwardCounterException: public Exception { + public: + BackwardCounterException::BackwardCounterException(const char *msg): Exception(msg) { } + BackwardCounterException::~BackwardCounterException () throw(){ } + }; } #endif /* EXCEPTION_H */