00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _ST_UCM_EXCEPTION_H_
00013 #define _ST_UCM_EXCEPTION_H_
00014
00015 #include <string>
00016
00020 class StUCMException {
00021 public:
00025 enum Severity
00026 {
00027 WARN,
00028 ERROR,
00029 FATAL
00030 };
00031
00032 public:
00038 StUCMException(const std::string& description, Severity severity = ERROR);
00039
00043 virtual ~StUCMException();
00044
00048 virtual std::string getDescription() const;
00049
00053 virtual Severity getSeverity() const;
00054
00055 protected:
00063 StUCMException(Severity severity = ERROR);
00064
00070 void setDescription(const std::string& description);
00071
00072 private:
00073 std::string description_;
00074 Severity severity_;
00075 };
00076
00077 #endif