00001 #ifndef SCT_CONFIGURATIONEXCEPTION_H
00002 #define SCT_CONFIGURATIONEXCEPTION_H
00003 #include "Exception.h"
00004
00005 namespace Sct {
00006
00013 class ConfigurationException : public Exception {
00014 public:
00018 ConfigurationException(const string& msg, const string& file, int line) throw() {
00019 initialize("BAD_CONFIG", "Sct::ConfigurationException", msg, 0, file, line);
00020 }
00021
00026 ConfigurationException(Throwable& cause, const string& file, int line) throw() {
00027 initialize("BAD_CONFIG", "Sct::ConfigurationException", "", &cause, file, line);
00028 }
00029
00033 ConfigurationException(const string& msg, Throwable& cause, const string& file, int line) throw() {
00034 initialize("BAD_CONFIG", "Sct::ConfigurationException", msg, &cause, file, line);
00035 }
00036
00037 protected:
00038 ConfigurationException() throw() {}
00039 };
00040
00041 }
00042
00043 #endif //SCT_CONFIGURATIONEXCEPTION_H