00001 #ifndef SCT_VERSIONNOTSUPPORTEDEXCEPTION_H
00002 #define SCT_VERSIONNOTSUPPORTEDEXCEPTION_H
00003
00004 #include "IoExceptions.h"
00005
00006 namespace Sct {
00007
00014 class VersionNotSupportedException : public IoException {
00015 public:
00019 VersionNotSupportedException(const string& msg, const string& file, int line) throw() {
00020 initialize("BAD_VERSION", "Sct::VersionNotSupportedException", msg, 0, file, line);
00021 }
00022
00027 VersionNotSupportedException(Throwable& cause, const string& file, int line) throw() {
00028 initialize("BAD_VERSION", "Sct::VersionNotSupportedException", "", &cause, file, line);
00029 }
00030
00034 VersionNotSupportedException(const string& msg, Throwable& cause, const string& file, int line) throw() {
00035 initialize("BAD_VERSION", "Sct::VersionNotSupportedException", msg, &cause, file, line);
00036 }
00037
00038 protected:
00039 VersionNotSupportedException() throw() {}
00040
00041 };
00042 }
00043
00044 #endif //SCT_VERSIONNOTSUPPORTEDEXCEPTION_H