testException.h

Go to the documentation of this file.
00001 
00016 #ifndef _DLR_TESTEXCEPTION_H_
00017 #define _DLR_TESTEXCEPTION_H_
00018 
00019 #include <dlrCommon/exception.h>
00020 
00021 
00022 namespace dlr {
00023 
00027   namespace test {
00028 
00034     class TestException : public Exception {
00035     public:
00039       TestException() throw()
00040         : Exception("", "TestException") {}
00041 
00042 
00049       TestException(const char* message) throw()
00050         : Exception(message, "TestException") {}
00051 
00052 
00065       TestException(const char* message, const char* fileName,
00066                     int lineNumber) throw()
00067         : Exception(message, "TestException", 0, fileName, lineNumber) {}
00068 
00069 
00085       TestException(const char* message, const char* functionName,
00086                     const char* fileName, int lineNumber) throw()
00087         : Exception(message, "TestException", functionName, fileName,
00088                     lineNumber) {}
00089 
00090 
00096       TestException(const TestException& source) throw()
00097         : Exception(source) {}
00098 
00099 
00103       virtual ~TestException() throw() {}
00104     };
00105 
00106   } // namespace test
00107   
00108 } // namespace dlr
00109 
00110 
00111 /* ======= Declarations to maintain compatibility with legacy code. ======= */
00112 
00113 namespace dlr {
00114 
00115   using test::TestException;
00116   
00117 } // namespace dlr
00118 
00119 
00120 #endif // #ifndef _DLR_TESTEXCEPTION_H_

Generated on Wed Nov 25 01:02:07 2009 for dlrTest Utility Library by  doxygen 1.5.8