/[PAMELA software]/quicklook/OrbitalRate/inc/Exception.h
ViewVC logotype

Diff of /quicklook/OrbitalRate/inc/Exception.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-rm2, Tue Dec 5 19:49:14 2006 UTC revision 1.2 by pam-rm2, Sat Nov 3 22:11:17 2007 UTC
# Line 32  namespace pamela { Line 32  namespace pamela {
32    
33    class NotFoundEnvironmentVarException: public Exception {    class NotFoundEnvironmentVarException: public Exception {
34    public:    public:
35      NotFoundEnvironmentVarException::NotFoundEnvironmentVarException(const char* msg):  Exception(msg) {}      NotFoundEnvironmentVarException(const char* msg):  Exception(msg) {}
36      NotFoundEnvironmentVarException::~NotFoundEnvironmentVarException () throw(){ }      ~NotFoundEnvironmentVarException () throw(){ }
37    };    };
38    
39    class UnidentifiedPacketException: public Exception {    class UnidentifiedPacketException: public Exception {
40    private:    private:
41      UINT8     pktId;      UINT8     pktId;
42    public:    public:
43      UnidentifiedPacketException::UnidentifiedPacketException(UINT8 id):      UnidentifiedPacketException(UINT8 id):
44      Exception("Unidentified PacketType - Id: ") {      Exception("Unidentified PacketType - Id: ") {
45          pktId = id;          pktId = id;
46      }      }
47      UnidentifiedPacketException::~UnidentifiedPacketException () throw(){ }      ~UnidentifiedPacketException () throw(){ }
48      const char* UnidentifiedPacketException::print () const throw () {      const char* print () const throw () {
49          sprintf((char*)buff," %s 0x%x", message, pktId);          sprintf((char*)buff," %s 0x%x", message, pktId);
50          return buff;          return buff;
51      }      }
# Line 53  namespace pamela { Line 53  namespace pamela {
53    
54    class WrongCRCException: public Exception {    class WrongCRCException: public Exception {
55    public:    public:
56      WrongCRCException::WrongCRCException(const char* msg):  Exception(msg) {}      WrongCRCException(const char* msg):  Exception(msg) {}
57      WrongCRCException::~WrongCRCException () throw(){ }      ~WrongCRCException () throw(){ }
58    };    };
59    
60    class WrongCRCHeaderException: public Exception {    class WrongCRCHeaderException: public Exception {
61    public:    public:
62      WrongCRCHeaderException::WrongCRCHeaderException(const char* msg):  Exception(msg) {}      WrongCRCHeaderException(const char* msg):  Exception(msg) {}
63      WrongCRCHeaderException::~WrongCRCHeaderException () throw(){ }      ~WrongCRCHeaderException () throw(){ }
64    };    };
65    
66    
67    class LengthException: public Exception {    class LengthException: public Exception {
68    public:    public:
69      LengthException::LengthException(const char* msg):  Exception(msg) { }      LengthException(const char* msg):  Exception(msg) { }
70      LengthException::~LengthException () throw(){ }      ~LengthException () throw(){ }
71    };    };
72    
73    
74    class NotExistingAlgorithmException: public Exception {    class NotExistingAlgorithmException: public Exception {
75    public:    public:
76      NotExistingAlgorithmException::NotExistingAlgorithmException(const char *msg):  Exception(msg) { }      NotExistingAlgorithmException(const char *msg):  Exception(msg) { }
77      NotExistingAlgorithmException::~NotExistingAlgorithmException () throw(){ }      ~NotExistingAlgorithmException () throw(){ }
78    };    };
79        
80    class NotExistingCounterException: public Exception {    class NotExistingCounterException: public Exception {
81    public:    public:
82      NotExistingCounterException::NotExistingCounterException(const char *msg):  Exception(msg) { }      NotExistingCounterException(const char *msg):  Exception(msg) { }
83      NotExistingCounterException::~NotExistingCounterException () throw(){ }      ~NotExistingCounterException () throw(){ }
84    };    };
85    
86    class BackwardCounterException: public Exception {    class BackwardCounterException: public Exception {
87    public:    public:
88      BackwardCounterException::BackwardCounterException(const char *msg):  Exception(msg) { }      BackwardCounterException(const char *msg):  Exception(msg) { }
89      BackwardCounterException::~BackwardCounterException () throw(){ }      ~BackwardCounterException () throw(){ }
90    };    };
91  }  }
92  #endif /* EXCEPTION_H */  #endif /* EXCEPTION_H */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23