1 #ifndef ANTENNAEXCEPTION_H
2 #define ANTENNAEXCEPTION_H
17 class AntennaException : sza::util::Exception {
32 inline AntennaException(std::string str,
const char * fileName,
33 const int lineNumber, Type type) :
34 sza::util::Exception(str, fileName, lineNumber, true), type_(type) {}
43 inline AntennaException(std::ostringstream& os,
const char * fileName,
44 const int lineNumber, Type type) :
45 sza::util::Exception(os, fileName, lineNumber, true), type_(type) {}
50 inline AntennaException(sza::util::LogStream& ls,
51 const char* fileName,
const int lineNumber,
53 sza::util::Exception(ls, fileName, lineNumber, true), type_(type) {}
58 inline AntennaException(sza::util::LogStream* ls,
59 const char* fileName,
const int lineNumber,
61 sza::util::Exception(ls, fileName, lineNumber, true), type_(type) {}
66 inline void setPmac() {type_ = PMAC;}
71 inline bool isPmac() {
return type_ == PMAC;}
83 #define AntError(x) AntennaException((x), __FILE__, __LINE__, \
84 AntennaException::UNKNOWN)
86 #define AntErrorDef(x,y) AntennaException (x)((y), __FILE__, __LINE__, \
87 AntennaException::UNKNOWN))
89 #define PmacError(x) AntennaException((x), __FILE__, __LINE__, \
90 AntennaException::PMAC)
92 #define PmacErrorDef(x,y) AntennaException (x)((y), __FILE__, __LINE__, \
93 AntennaException::PMAC))
Tagged: Fri Nov 14 12:39:33 UTC 2003.