CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

CppUnit::NotEqualException Class Reference
[Browsing collected test result]

Exception thrown by failed equality assertions. More...

#include <NotEqualException.h>

Inheritance diagram for CppUnit::NotEqualException:

Inheritance graph
[legend]
Collaboration diagram for CppUnit::NotEqualException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NotEqualException (std::string expected, std::string actual, SourceLine sourceLine=SourceLine(), std::string additionalMessage="")
 NotEqualException (const NotEqualException &other)
virtual ~NotEqualException () throw ()
std::string expectedValue () const
std::string actualValue () const
std::string additionalMessage () const
NotEqualExceptionoperator= (const NotEqualException &other)
Exceptionclone () const
bool isInstanceOf (const Type &type) const

Static Public Member Functions

Type type ()

Private Attributes

std::string m_expected
std::string m_actual
std::string m_additionalMessage

Detailed Description

Exception thrown by failed equality assertions.


Constructor & Destructor Documentation

CppUnit::NotEqualException::NotEqualException std::string  expected,
std::string  actual,
SourceLine  sourceLine = SourceLine(),
std::string  additionalMessage = ""
 

Constructs the exception.

Parameters:
expected Text that represents the expected value.
actual Text that represents the actual value.
sourceLine Location of the assertion.
additionalMessage Additionnal information provided to further qualify the inequality.

CppUnit::NotEqualException::NotEqualException const NotEqualException other  ) 
 

CppUnit::NotEqualException::~NotEqualException  )  throw () [virtual]
 


Member Function Documentation

std::string CppUnit::NotEqualException::actualValue  )  const
 

std::string CppUnit::NotEqualException::additionalMessage  )  const
 

Exception * CppUnit::NotEqualException::clone  )  const [virtual]
 

Reimplemented from CppUnit::Exception.

std::string CppUnit::NotEqualException::expectedValue  )  const
 

bool CppUnit::NotEqualException::isInstanceOf const Type &  type  )  const [virtual]
 

Reimplemented from CppUnit::Exception.

NotEqualException & CppUnit::NotEqualException::operator= const NotEqualException other  ) 
 

Copy operator.

Parameters:
other Object to copy.
Returns:
Reference on this object.

Exception::Type CppUnit::NotEqualException::type  )  [static]
 

Reimplemented from CppUnit::Exception.


Member Data Documentation

std::string CppUnit::NotEqualException::m_actual [private]
 

std::string CppUnit::NotEqualException::m_additionalMessage [private]
 

std::string CppUnit::NotEqualException::m_expected [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers