00001 #ifndef NOTEQUALEXCEPTION_H
00002 #define NOTEQUALEXCEPTION_H
00003
00004 #include <cppunit/Exception.h>
00005
00006
00007 namespace CppUnit {
00008
00009
00010 class NotEqualException : public Exception
00011 {
00012 public:
00013 NotEqualException( std::string expected,
00014 std::string actual,
00015 long lineNumber = UNKNOWNLINENUMBER,
00016 std::string fileName = UNKNOWNFILENAME );
00017
00018 NotEqualException( const NotEqualException &other );
00019
00020
00021 virtual ~NotEqualException() throw();
00022
00023 std::string expectedValue() const;
00024
00025 std::string actualValue() const;
00026
00031 NotEqualException &operator =( const NotEqualException &other );
00032
00033 Exception *clone() const;
00034
00035 bool isInstanceOf( const Type &type ) const;
00036
00037 static Type type();
00038
00039 private:
00040 std::string m_expected;
00041 std::string m_actual;
00042 };
00043
00044 }
00045
00046 #endif // NOTEQUALEXCEPTION_H