00001 #ifndef NOTEQUALEXCEPTION_H
00002 #define NOTEQUALEXCEPTION_H
00003
00004 #include <cppunit/Exception.h>
00005
00006
00007 namespace CppUnit {
00008
00012 class CPPUNIT_API NotEqualException : public Exception
00013 {
00014 public:
00022 NotEqualException( std::string expected,
00023 std::string actual,
00024 SourceLine sourceLine = SourceLine(),
00025 std::string additionalMessage = "" );
00026
00027 #ifdef CPPUNIT_ENABLE_SOURCELINE_DEPRECATED
00028 NotEqualException( std::string expected,
00029 std::string actual,
00030 long lineNumber,
00031 std::string fileName );
00032 #endif
00033
00034 NotEqualException( const NotEqualException &other );
00035
00036
00037 virtual ~NotEqualException() throw();
00038
00039 std::string expectedValue() const;
00040
00041 std::string actualValue() const;
00042
00043 std::string additionalMessage() const;
00044
00049 NotEqualException &operator =( const NotEqualException &other );
00050
00051 Exception *clone() const;
00052
00053 bool isInstanceOf( const Type &type ) const;
00054
00055 static Type type();
00056
00057 private:
00058 std::string m_expected;
00059 std::string m_actual;
00060 std::string m_additionalMessage;
00061 };
00062
00063 }
00064
00065 #endif // NOTEQUALEXCEPTION_H