00001 #ifndef SCTTEST_EXCEPTIONS_H
00002 #define SCTTEST_EXCEPTIONS_H
00003
00004 #include "Sct/Exception.h"
00005
00006 namespace SctTest {
00007
00013 class SctTestException : public Sct::Exception {
00014 public:
00015 SctTestException(const string& msg, const string& file, int line) throw() ;
00016 SctTestException(Sct::Throwable& cause, const string& file, int line) throw();
00017 SctTestException(const string& msg, Sct::Throwable& cause, const string& file, int line) throw() ;
00018
00019 protected:
00020 SctTestException() throw() {}
00021
00022 };
00023
00029 class NoDataFileException : public SctTestException {
00030 public:
00031 NoDataFileException(const string& msg, const string& file, int line) throw() ;
00032 NoDataFileException(Sct::Throwable& cause, const string& file, int line) throw();
00033 NoDataFileException(const string& msg, Sct::Throwable& cause, const string& file, int line) throw();
00034
00035 protected:
00036 NoDataFileException() throw() {}
00037
00038 };
00039
00045 class DataNotValidException : public SctTestException {
00046 public:
00047 DataNotValidException(const string& msg, const string& file, int line) throw();
00048 DataNotValidException(Sct::Throwable& cause, const string& file, int line) throw() ;
00049 DataNotValidException(const string& msg, Sct::Throwable& cause, const string& file, int line) throw() ;
00050
00051 protected:
00052 DataNotValidException() throw() {}
00053
00054 };
00055
00061 class NoDataException : public SctTestException {
00062 public:
00063 NoDataException(const string& msg, const string& file, int line) throw();
00064 NoDataException(Sct::Throwable& cause, const string& file, int line) throw() ;
00065 NoDataException(const string& msg, Sct::Throwable& cause, const string& file, int line) throw() ;
00066
00067 protected:
00068 NoDataException() throw() {}
00069
00070 };
00071 }
00072
00073 #endif //SCTTEST_EXCEPTIONS_H